EC2 InvalidLaunchTemplateName.NotFound error encountered when trying to launch an EC2 instance.
The specified launch template name does not exist or is incorrect.
Stuck? Let AI directly find root cause
AI that integrates with your stack & debugs automatically | Runs locally and privately
What is EC2 InvalidLaunchTemplateName.NotFound error encountered when trying to launch an EC2 instance.
Understanding Amazon EC2 and Launch Templates
Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. A launch template is a resource that contains the configuration information to launch an instance, such as the AMI ID, instance type, key pair, security groups, and network configurations.
Identifying the Symptom
When attempting to launch an EC2 instance using a launch template, you may encounter the error: InvalidLaunchTemplateName.NotFound. This indicates that the specified launch template name does not exist or is incorrect.
Common Scenarios
This error typically occurs when the launch template name is misspelled, the template has been deleted, or it exists in a different AWS region than expected.
Exploring the Issue
The InvalidLaunchTemplateName.NotFound error is an indication from AWS that the launch template you are trying to use cannot be found. This could be due to a typo in the template name, or the template might have been removed or is not available in the current region.
Why This Happens
Launch templates are region-specific, meaning they are only available in the region they were created. If you attempt to use a launch template in a different region, AWS will not be able to find it.
Steps to Fix the Issue
To resolve the InvalidLaunchTemplateName.NotFound error, follow these steps:
1. Verify the Launch Template Name
Log in to the AWS Management Console. Navigate to the EC2 Dashboard. In the left-hand menu, click on Launch Templates. Ensure that the launch template name you are using matches exactly with the one listed.
2. Check for Deletion
If the template is not listed, it may have been deleted. Verify with your team or check the AWS CloudTrail logs to confirm if the template was deleted.
3. Confirm the AWS Region
Ensure that you are operating in the correct AWS region where the launch template was created. You can switch regions using the region selector in the top-right corner of the AWS Management Console.
4. Use the AWS CLI for Verification
To list all launch templates in a specific region, use the AWS CLI command:
aws ec2 describe-launch-templates --region
This command will return a list of all launch templates available in the specified region. Verify that your launch template is listed.
Additional Resources
For more information on managing launch templates, visit the AWS EC2 Launch Templates Documentation.
To learn more about troubleshooting EC2 issues, check out the AWS Knowledge Center.
EC2 InvalidLaunchTemplateName.NotFound error encountered when trying to launch an EC2 instance.
TensorFlow
- 80+ monitoring tool integrations
- Long term memory about your stack
- Locally run Mac App available
Time to stop copy pasting your errors onto Google!