Skip to content

Instantly share code, notes, and snippets.

@cwjohnston
Created June 12, 2015 22:03
Show Gist options
  • Select an option

  • Save cwjohnston/620f836a1cdc60a4b49d to your computer and use it in GitHub Desktop.

Select an option

Save cwjohnston/620f836a1cdc60a4b49d to your computer and use it in GitHub Desktop.
resources(:my_eni) do
type 'AWS::EC2::NetworkInterface'
properties do
subnet_id ref!(:my_subnet_id)
group_set [ref!(:my_security_group)]
end
end
resources(:my_eip) do
type 'AWS::EC2::EIP'
properties do
domain 'vpc'
end
end
resources(:my_instance) do
type 'AWS::EC2::Instance'
properties do
# other properties here
network_interfaces array!(
-> {
device_index 0
network_interface_id ref!(:my_eni)
}
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment