Skip to content

Instantly share code, notes, and snippets.

@jeffbrl
Created September 9, 2018 00:04
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 jeffbrl/1eefec8378abdee206e6537ad32fd0d4 to your computer and use it in GitHub Desktop.
Save jeffbrl/1eefec8378abdee206e6537ad32fd0d4 to your computer and use it in GitHub Desktop.
AWS CloudFormation NetworkInterfaces Syntax
# From https://stackoverflow.com/questions/47644034/cloudformation-error-value-of-property-networkinterfaces-must-be-a-list-of-obje
MyAppNetworkInterface:
Type: AWS::EC2::NetworkInterface
Properties:
SubnetId: !Ref SubnetPrivate
MyApp:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.medium
NetworkInterfaces:
- NetworkInterfaceId: !Ref MyAppNetworkInterface
DeviceIndex: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment