From 03e2c879c2f73356be5075d3fe000811ca616e70 Mon Sep 17 00:00:00 2001 From: GlennChia Date: Wed, 6 Jul 2022 10:47:19 +0800 Subject: [PATCH 1/3] feat(cfn): vpc basic --- blog-assets/change-cfn-stack-name/01-vpc-basic.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 blog-assets/change-cfn-stack-name/01-vpc-basic.yaml diff --git a/blog-assets/change-cfn-stack-name/01-vpc-basic.yaml b/blog-assets/change-cfn-stack-name/01-vpc-basic.yaml new file mode 100644 index 0000000..2433e85 --- /dev/null +++ b/blog-assets/change-cfn-stack-name/01-vpc-basic.yaml @@ -0,0 +1,12 @@ +AWSTemplateFormatVersion: 2010-09-09 + +Description: Deploys a VPC + +Resources: + Vpc: + Type: AWS::EC2::VPC + Properties: + CidrBlock: 10.0.0.0/16 + Tags: + - Key: Name + Value: rename-stack-demo \ No newline at end of file From e21f7b79052315c0161ee0a8d5b94af39c0ecb10 Mon Sep 17 00:00:00 2001 From: GlennChia Date: Wed, 6 Jul 2022 10:47:36 +0800 Subject: [PATCH 2/3] feat(cfn): vpc DeletionPolicy Retain --- .../change-cfn-stack-name/02-vpc-retain.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 blog-assets/change-cfn-stack-name/02-vpc-retain.yaml diff --git a/blog-assets/change-cfn-stack-name/02-vpc-retain.yaml b/blog-assets/change-cfn-stack-name/02-vpc-retain.yaml new file mode 100644 index 0000000..7b6658b --- /dev/null +++ b/blog-assets/change-cfn-stack-name/02-vpc-retain.yaml @@ -0,0 +1,13 @@ +AWSTemplateFormatVersion: 2010-09-09 + +Description: Deploys a VPC + +Resources: + Vpc: + Type: AWS::EC2::VPC + DeletionPolicy: Retain + Properties: + CidrBlock: 10.0.0.0/16 + Tags: + - Key: Name + Value: rename-stack-demo \ No newline at end of file From ae7850ec925752b15ec6efcf2e3ff205f14c8a7f Mon Sep 17 00:00:00 2001 From: GlennChia Date: Thu, 7 Jul 2022 21:04:01 +0800 Subject: [PATCH 3/3] feat(cfn): add qsid to cfn blog template --- blog-assets/change-cfn-stack-name/01-vpc-basic.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog-assets/change-cfn-stack-name/01-vpc-basic.yaml b/blog-assets/change-cfn-stack-name/01-vpc-basic.yaml index 2433e85..f2228c4 100644 --- a/blog-assets/change-cfn-stack-name/01-vpc-basic.yaml +++ b/blog-assets/change-cfn-stack-name/01-vpc-basic.yaml @@ -1,6 +1,6 @@ AWSTemplateFormatVersion: 2010-09-09 -Description: Deploys a VPC +Description: "Deploys a VPC (qs-1t72ibrq5)" Resources: Vpc: