- Newest
- Most votes
- Most comments
Hi Surya,
It seems the issue might be related to several key factors in your CloudFormation template. Please ensure that the following resources are correctly configured and exist:
**Security Group ID (SGID): ** Ensure the specified Security Group ID exists and is correctly configured.
Subnet ID: Verify that the provided Subnet ID is valid and available in the desired availability zone.
Key Pair: Double-check that the key pair exists in the region you're deploying to.
AMI ID: The AMI ID should be validated, as some instance types or regions may not support the specified AMI.
Additionally, I would recommend considering the following updates for better performance and compatibility:
Instead of using the T2 instance types, which are an older generation, I suggest opting for T3 or T3a instances if you are using x86-based AMIs. For ARM-based AMIs, you can use T4g instances, which provide better performance and cost efficiency with Graviton processors. Double-check that your chosen AMI is compatible with the instance type, as some of the latest AMIs and OS versions may not fully support the older T2 instances.
Also, as a best practice for privacy and security, avoid posting actual resource IDs such as Subnet IDs, Security Group IDs, and Key Pairs publicly. Please redact or scrub them when sharing your templates.
Relevant content
- asked 3 years ago