How to modify a Launch template
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have discussed how to create an AWS EC2 instance using Launch Template.
In this blog post, we are going to discuss how to modify a launch template.
Prerequisites for this demo:
- One active AWS account
- One existing launch template
How to modify a Launch template:
Step 1: Login to AWS console and navigate to EC2 service and click on ‘Launch Templates’ under INSTANCES
Step 2: Click ‘Create launch template’
Note: We have already had an existing Launch template with version v1 and set as default.
Step 3: Select create a new template version and select Source launch template and Source template version to point to your existing launch template.
Step 4: Once we have selected the Source launch template and Source template version, launch parameters will be displayed for that Source template. In this demo, we are going to change the instance type from t2.micro to t2.medium.
Note: You can change any launch parameter. Launch parameters are not mandatory and are not validated during Launch Template configuration.
We will not change any other launch parameter in this demo.
Step 5: Click ‘Create Launch Template’. We will get a success message, click ‘Close’.
Our Launch template has been successfully modified with a new launch template version.
Note: Still the old version of launch template is selected as the default version. We need to manually change the new version to default.
Step 6: Click ‘Actions’ and select ‘Set default version’
Step 7: From the drop-down select the latest version and click Set as the default version. One success message will be displayed, click ‘Close’.
The new launch template version has been set the default version.
Hope you have enjoyed this blog post. In the next blog post, we are going to add additional volume to our existing EC2 instance.