From cbeea75b260a06633ef495ef2adcedeef2aa04c0 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Thu, 13 Dec 2018 11:58:46 +0200 Subject: [PATCH] chore: fix java app init template after bucket orphaning (#1352) Since s3 buckets now have DeletionPolicy of "Retain" by default, the init template's expectation file must be updated. Related #1273 --- .../test/resources/com/myorg/expected.cfn.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/aws-cdk/lib/init-templates/app/java/src/test/resources/com/myorg/expected.cfn.json b/packages/aws-cdk/lib/init-templates/app/java/src/test/resources/com/myorg/expected.cfn.json index a7e1a19bd3f0c..3af4c520db638 100644 --- a/packages/aws-cdk/lib/init-templates/app/java/src/test/resources/com/myorg/expected.cfn.json +++ b/packages/aws-cdk/lib/init-templates/app/java/src/test/resources/com/myorg/expected.cfn.json @@ -42,7 +42,8 @@ } }, "BucketsBucket1B98A5B53": { - "Type": "AWS::S3::Bucket" + "Type": "AWS::S3::Bucket", + "DeletionPolicy": "Retain" }, "MyFirstQueueFF09316A": { "Type": "AWS::SQS::Queue", @@ -66,13 +67,16 @@ } }, "BucketsBucket351AD8978": { - "Type": "AWS::S3::Bucket" + "Type": "AWS::S3::Bucket", + "DeletionPolicy": "Retain" }, "BucketsBucket237F4E9C5": { - "Type": "AWS::S3::Bucket" + "Type": "AWS::S3::Bucket", + "DeletionPolicy": "Retain" }, "BucketsBucket4AEE1AAD9": { - "Type": "AWS::S3::Bucket" + "Type": "AWS::S3::Bucket", + "DeletionPolicy": "Retain" }, "MyUserDC45028B": { "Type": "AWS::IAM::User" @@ -244,7 +248,8 @@ } }, "BucketsBucket04F23AD6D": { - "Type": "AWS::S3::Bucket" + "Type": "AWS::S3::Bucket", + "DeletionPolicy": "Retain" } } } \ No newline at end of file