File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
typescript/static-site-basic Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " static-site-basic" ,
33 "version" : " 1.0.0" ,
4- "description" : " Infrastructure for an HTTPS static site using S3 and CloudFront " ,
4+ "description" : " Infrastructure for hosting an HTTP website in S3 " ,
55 "scripts" : {
66 "build" : " tsc" ,
77 "watch" : " tsc -w" ,
Original file line number Diff line number Diff line change @@ -11,16 +11,11 @@ export interface StaticSiteBasicProps {
1111
1212/**
1313 * Static site infrastructure, which deploys site content to an S3 bucket.
14- *
15- * The site redirects from HTTP to HTTPS, using a CloudFront distribution,
16- * Route53 alias record, and ACM certificate.
1714 */
1815export class StaticSiteBasic extends Construct {
1916 constructor ( parent : Stack , name : string , props : StaticSiteBasicProps ) {
2017 super ( parent , name ) ;
2118
22- // new CfnOutput(this, "Site", { value: "https://" + siteDomain });
23-
2419 // Content bucket
2520 const indexDocument = "index.html" ;
2621
@@ -58,7 +53,6 @@ export class StaticSiteBasic extends Construct {
5853
5954 // Deploy site contents to S3 bucket
6055 new s3deploy . BucketDeployment ( this , "DeployWebsite" , {
61- //sources: [s3deploy.Source.asset(path.join(__dirname, './site-contents'))],
6256 sources : [ s3deploy . Source . asset ( path . join ( __dirname , "./site-contents" ) ) ] ,
6357 destinationBucket : websiteBucket ,
6458 destinationKeyPrefix : props . staticContentPrefix , // optional prefix in destination bucket
You can’t perform that action at this time.
0 commit comments