Next we’ll click on the search bar, and type “CLOUD FORMATION” you will see the Cloudformation resource as shown below.
Creating a New Stack, inside the stack section, you will see 3 options: “Choose an existing template, Use a sample template and Build from Infrastructure Composer.”
But for the sake of this projec, we will select the first option “Choose an existing template”.
Scroll down and specify the template to choose the file from.
Upload your ec2_vpc.yaml template file from your computer. Select the file and click open.
Next would be to enter a Stack name (e.g., EC2InVPCStack) and click on the next button.
And leave the rest as default and click next.
If everything is properly set, click on the ‘submit’ button.
When the ‘Status’ shows CREATE_COMPLETE, your EC2 instance and VPC and other resources have been successfully launched.
Check in EC2 and VPC Consoles:
- Go to the EC2 console to see the running instance.
This template creates a basic setup with a VPC, subnet, internet gateway, route table, security group, and an EC2 instance. You can customize the configurations further based on your requirements.
I also want to express that your feedback is always welcome. As I strive to provide accurate information and insights, I acknowledge that there’s always room for improvement. If you notice any mistakes or have suggestions for enhancement, I sincerely invite you to share them with me.
🤩 Thanks for being patient and following me. Keep supporting 🙏
Share a reaction 👏 if you liked this article.
For more exercises — please follow me below ✅!
https://dev.to/uwadon1
SOCIAL SHARE CARD GENERATOR