Skip to content

Instantly share code, notes, and snippets.

@bluethundr
Created December 19, 2016 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluethundr/411d08f084f7408f09d3b9942f0c649f to your computer and use it in GitHub Desktop.
Save bluethundr/411d08f084f7408f09d3b9942f0c649f to your computer and use it in GitHub Desktop.
# if I have a specific private IP address in mind for an ec2 instance, how can I specify it in a salt cloud profile
ec2_private_win_app1:
provider: company-nonpod-us-east-1
image: ami-xxxxxxxx
size: c4.large
network_interfaces:
- DeviceIndex: 0
SubnetId: subnet-xxxxxxxx
SecurityGroupId: sg-xxxxxxxx
PrivateIpAddresses:
- Primary: True
#auto assign public ip (not EIP)
AssociatePublicIpAddress: False
tag: {'Engagement': 'xxxxxxxxxxxxx', 'Owner': 'Tim Dunphy', 'Name': 'production'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment