I'm trying to get tagging to work correctly in salt cloud. This is the profile that I'm trying to use:
ec2_private_win_app1_c4.2xlarge:
provider: company-nonpod-us-east-1
image: ami-87513090
size: c4.2xlarge
network_interfaces:
- DeviceIndex: 0
PrivateIpAddresses:
- Primary: True
#auto assign public ip (not EIP)
AssociatePublicIpAddress: False
SubnetId: subnet-xxxxxxxx
SecurityGroupId: sg-xxxxxxxx
tag:
- {'Engagement': 'xxxxxxxxxxxx'}
- {'Owner': 'Tim Dunphy'}
- {'Name': 'production'}
block_device_mappings:
- DeviceName: /dev/sda1
Ebs.VolumeSize: 120
Ebs.VolumeType: gp2
- DeviceName: /dev/sdf
Ebs.VolumeSize: 100
Ebs.VolumeType: gp2
The instances spin up fine. However tagging doesn't seem to work at all. When I go into the tags section for the ec2 instance, the tags just aren't there. What can I do to get tags to work for AWS using salt cloud?