Skip to content

Instantly share code, notes, and snippets.

Created March 30, 2017 15:13
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 anonymous/d35f1864182a89a4f8c5476c8e9f98cf to your computer and use it in GitHub Desktop.
Save anonymous/d35f1864182a89a4f8c5476c8e9f98cf to your computer and use it in GitHub Desktop.
Multiple interfaces config
ftp2-1a:
provider: ec2
image: ami-e68f82fb
size: t2.nano
ssh_username: centos
sync_after_install: grains
block_device_mappings:
- DeviceName: /dev/sda1
Ebs.VolumeSize: 10
Ebs.VolumeType: gp2
volumes:
- { size: 20, device: /dev/sdb, type: gp2 }
network_interfaces:
- DeviceIndex: 0
SubnetId: subnet-XYZ
SecondaryPrivateIpAddressCount: 1
SecurityGroupId:
- sg-XYZ
- DeviceIndex: 1
SubnetId: subnet-XYZ
SecurityGroupId:
- sg-XYZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment