aws cloudformation importing existing resources
In this demo, i am going to import an existing storage called " appjerwo-demo-test " and once i have done that I will create another s3 bucket called " myjerwo-new-bucket-2026 ". To get started, I will need to have to prepare my import s3 template. import-template.yaml AWSTemplateFormatVersion : ' 2010-09-09 ' Description : Import existing S3 bucket Resources : ImportedAppBucket : # ← ONLY the resource being imported Type : AWS::S3::Bucket DeletionPolicy : Retain # ← REQUIRED for imports Properties : BucketName : appjerwo-demo-test And then I will proceed to run the following command to create import changeset. My stack name is called my-app-stack. aws cloudformation create-change-set \ --stack-name my-app-stack \ --change-set-name import-bucket \ --change-set-type IMPORT \ --template-body file://import-template.yaml \ --resources-to-import '[{ ...