Created
June 12, 2015 22:03
-
-
Save cwjohnston/620f836a1cdc60a4b49d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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