How can I attach a new EBS Volume to an EC2 instance created with a Cloudformation stack?

0

I'm new to Cloudformation. I used a template to launch my stack. Since the successful launch, I now need to attach a new EBS volume or modify the existing volume to add more disk space. Does this have to be done through the Cloudformation console or can I attach a volume using the EBS console without "corrupting" my Cloudformation stack? If it needs to be done through the stack, I assume I should modify my template to add/modify the EBS volumes. Just wondering what the best way is. Thanks

1 回答
2

My recommendation is always to leverage infrastructure as code and in your case, modify the cloud formation template.

Look into this construct: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.html

profile picture
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则