cloud formation: how to save update to same s3 object?

0

I created a private s3 bucket

I uploaded a yaml template for Cloud Formation

I can create a new stack from existing template, using amazon s3 url

Before clicking next to create, I view it in application composer.

I apply a small modification

I want to update THE SAME object in the same s3 bucket before try to create the stack

But When I click 'create template', it ask me for a bucket and not for an url

Also, I could save it in the same bucket, but i cannot choose the existing bucket.

I must copy/paste every time the same bucket url.

I do not want a proliferation of useless s3 buckets.

1 Answer
3

Hello

It sounds like you want to update the existing CloudFormation template YAML file stored in the same S3 bucket without creating a new bucket each time. Here's how you can achieve this:

  1. Navigate to the S3 Bucket: Go to the Amazon S3 console and navigate to the bucket where your CloudFormation template is stored.

2.Upload the Updated Template: Upload the updated YAML template file to the same S3 bucket, replacing the existing file. Make sure to keep the same key (file name) when uploading the updated template.

3.Update the Stack: Once the updated template is uploaded, you can go back to the CloudFormation console, select your stack, and choose the option to update the stack. When prompted for the template source, select "Amazon S3 URL" and provide the URL of the updated YAML file in the same bucket.

By following these steps, you'll be able to update the existing CloudFormation stack using the updated template stored in the same S3 bucket without creating new buckets each time. This approach helps avoid the proliferation of unnecessary S3 buckets.

profile picture
answered a month ago
  • It's a long and manually task, each time!? No alternatives ? Anyway, thanks.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions