Create EC2 instance using CloudFormation, but the name (tags) of root volume is empty. How to set it using CloudFormation?
# ec2-instance.yml (CloudFormation template)
MyInstance:
Type: "AWS::EC2::Instance"
Properties:
ImageId: "ami-da9e2cbc"
InstanceType: "t2.nano"
KeyName: !Ref "KeyPair"
Tags: # This is for EC2 instance (not root volume)
- Key: "Name"
Value: "my-instance"
I find "Volumes" and "BlockDeviceMappings" properties but it could not.
