Skip to content

Latest commit

 

History

History
88 lines (75 loc) · 4.88 KB

README.md

File metadata and controls

88 lines (75 loc) · 4.88 KB

static-site

Deploys a simple static site on CloudFront backed by an S3 origin. Logs access request to S3.

Works with

Releases

Tag Message Commit
v155 static-site: remove old acl 210f21c
v144 static-site: fix IAM for S3 secure transport ae94309
v142 microsite-with-existing-realm: fix policy and references c569fa9
v141 adding new microsite-with-existing-realm module 92a21a8
v132 static-site: fix encryption 07c1217
v119 cicd: adding secure build environment for codebuild 755e7c2
v118 static-site-with-cicd: changing build timeout to 60mins 4ae0cca
v112 static*: adding further support for custom domains/certs bc50e5c
v111 static-site-cicd*: adding build environment and policy support acfb3c3
v110 change static site to use regional bucket name efb823d
v107 adding support for static sites at domain apex 57ea984
v100 static-site-azure*: adding support for custom build policies a7a18d7
v99 static-site-*-oidc: adding support to manually set redirect URL if needed 5cabe0b
v81 lambda-function-node & static-site: small tweaks to get fix-cf-roots working da61f22
v75 static-site: updating to match latest aws provider for acm validation 553a12c
v69 static-site-azure-cicd: added first version 50a0fb7
v64 static-site-cicd-oidc-auth: adding support to change build image 51634e9
v55 static-site-with-cicd: adding support for sending notifications 67d8541
v46 basic-cicd-s3-pipeline: added support for build job to become root 001e53e
v45 static-site: adding s3 bucket encryption support c383f32
v40 static-site-cicd-oidc-auth: and supporting module changes 9f9d6b3
v11 more variables description updates 1fd416d
v10 added static site with cicd + small fixes to other modules 8c85c6b
v8 fixed hosted_zone_typo 5eaa939
v7 fixing r53 incorrect attributes b3e3804
v6 added r53 for cf distribution 6a514af
v5 adding back restrictions block ea8ace9
v4 fixed typo in r53 zone aa03fab
v3 fixed mispelled var name abdcb15
v2 fixing duplicated variable aws_region abd659e
v1 adding first go at static site module af683f8

Variables

Name Type Description Default Value
aws_region string region where provisioning should happen ``
sitename_prefix string prefix of site name e.g. for www.example.com this would be www, can be empty if deploy_at_apex is true ``
deploy_at_apex bool Deploy site at the domain_root apex, defaults to false false
domain_root string domain root for site e.g. example.com. This must be available in Route53. ``
access_log_bucket string S3 bucket where access logs will be placed ``
access_log_prefix string prefix used for any access logs written to S3 ``
http_version string version of http to use on this site http2
root_object_location string name of object to show when root of site is opened in a browser index.html
price_class string price class for the distribution, for more details see here https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DistributionConfig.html PriceClass_All
default_ttl number Default amount of time (in seconds) that an object is in a CloudFront cache 60
min_ttl number Minimum amount of time that you want objects to stay in CloudFront caches 0
max_ttl number Maximum amount of time (in seconds) that an object is in a CloudFront cache 3600
viewer_req_edge_lambda_arns list(string) list of qualified arns or viewer request edge lambdas which should be placed on the distribution, should all be in us-east-1 []
encrypt_buckets bool encrypt buckets with default AWS keys false
fix_non_specific_paths bool should we apply a lambda@edge function on origin requests to fix paths which are missing the expected root object? false
custom_404_path string what path should we use for a custom 404 (not found) error page none
certificate_arn string arn of a certificate, if this is specified the module will not create a certificate ``
alternative_dns_names list(string) list of additional names the cloudfront distribution []
origin_access_log_bucket string bucket to be used for access logging on the origin s3 bucket ``
origin_access_log_prefix string prefix to use for access logs where that is enabled ``
exclude_from_env list(string) List of environment variables to exclude from the build []
cipher_suite string Cipher suite to use on the cloudfront site TLSv1.2_2018

Outputs

Name Description
ssl_cert_arn
cf_origin_s3_bucket_id
cf_distribution_id