Tag Spot Instance Requests
Tags will help you to arrange or keep an track of your resources. Follow the steps mentioned below to tag the Spot EC2 instance:
Step 1: Open the AWS console and navigate to the EC2 spot instance tab.
Step 2: After going to the spot request select the spot request which you wan to tag after selecting.
Step 3: Click on Add tag and Add key and value to the tag and finally click on add.
Tag Using API
Us the following script to tag the AWS spot ec2 instance.
aws ec2 create-spot-instance-request –TagSpecifications ‘[
{
“ResourceType”: “instance”,
“Tags”: [
{
“Key”: “Name”,
“Value”: “My Spot Instance”
}
]
}
]’
The above code you need to mention the type of resource that you want to modify. Give the key value pair which you want to tag the instance.
How To Create Spot Instance In Aws-Ec2 In Aws Latest Wizards?
Spot instances are available at up to 90% discount because when instances are not used then the instance available in spot instance at a cheaper rate so that people can utilize. it. When the demand increases then amazon sent a notification your spot instance will disappear after two minutes. We can use it for temporary work if our data losses it will not affect us. AWS always recommended not using spot instances for your important work.