You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: typescript/static-site/README.md
+4-19Lines changed: 4 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,24 @@
8
8
>
9
9
> This examples does is built on Construct Libraries marked "Experimental" and may not be updated for latest breaking changes.
10
10
>
11
-
> If build is unsuccessful, please create an [issue](https://github.com/aws-samples/aws-cdk-examples/issues/new) so that we may debug the problem
11
+
> If build is unsuccessful, please create an [issue](https://github.com/aws-samples/aws-cdk-examples/issues/new) so that we may debug the problem
12
12
13
13
---
14
14
<!--END STABILITY BANNER-->
15
15
16
-
This example creates the infrastructure for a static site, which uses an S3 bucket for storing the content.
16
+
This example creates the infrastructure for a static site, which uses an S3 bucket for storing the content. The site contents (located in the 'site-contents' sub-directory) are deployed to the bucket.
17
17
18
18
The site redirects from HTTP to HTTPS, using a CloudFront distribution, Route53 alias record, and ACM certificate.
19
19
20
20
## Prep
21
21
22
-
The ACM certificate is expected to be created and validated outside of the CDK, with the certificate ARN stored in an AWS Systems Manager Parameter Store parameter.
22
+
The domain for the static site (i.e. mystaticsite.com) must be configured as a hosted zone in Route53 prior to deploying this example. For instructions on configuring Route53 as the DNS service for your domain, see the [Route53 documentation](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring.html).
During the infrastructure deployment, you will see an output named something like "StaticSiteBucket34E5D9AF". The value is the bucket name where you can upload the static site content.
40
-
41
-
You will also see an output named something like "StaticSiteDistributionId8C64EF2A". This value is the distribution ID for the CloudFront distribution, which needs to be invalidated each time new content is uploaded to the bucket.
0 commit comments