Skip to content

Instantly share code, notes, and snippets.

@rterbush
Created October 19, 2015 21:14
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 rterbush/5129af671d65e9f710da to your computer and use it in GitHub Desktop.
Save rterbush/5129af671d65e9f710da to your computer and use it in GitHub Desktop.
Salt VPC Cloud Config
#####################################################################
### base instance configurations
base-ec2-uswest2a-linux:
provider: aws-uswest2
availability_zone: us-west-2a
del_root_vol_on_destroy: True
rename_on_destroy: True
image: ami-xxx
ssh_username: ec2-user
size: t2.micro
private_key: /srv/etc/.ssh/mykey.pem
keyname: mykey.pem.pub
iam_profile: WebServerRole
network_interfaces:
- DeviceIndex: 0
PublicIpAddresses:
- Primary: True
AssociatePublicIpAddress: True
allocate_new_eip: False
SubnetId: subnet-xxx
SecurityGroupId: sg-xxx
SourceDestCheck: True
tag: {'Monitored': 'Yes', 'Role': 'nat'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment