File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export class AwsSdkJsNotesAppStack extends cdk.Stack {
1212
1313 const table = new dynamodb . Table ( this , "notes" , {
1414 partitionKey : { name : "noteId" , type : dynamodb . AttributeType . STRING } ,
15- removalPolicy : cdk . RemovalPolicy . DESTROY , // NOT recommended for production code
1615 } ) ;
1716
1817 const api = new apigw . RestApi ( this , "endpoint" ) ;
@@ -69,9 +68,7 @@ export class AwsSdkJsNotesAppStack extends cdk.Stack {
6968 )
7069 ) ;
7170
72- const filesBucket = new s3 . Bucket ( this , "files-bucket" , {
73- removalPolicy : cdk . RemovalPolicy . DESTROY , // NOT recommended for production code
74- } ) ;
71+ const filesBucket = new s3 . Bucket ( this , "files-bucket" ) ;
7572 filesBucket . addCorsRule ( {
7673 allowedOrigins : apigw . Cors . ALL_ORIGINS , // NOT recommended for production code
7774 allowedMethods : [
You can’t perform that action at this time.
0 commit comments