Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from Cheetah.Template import Template
test = {
'VPCId': 'vpc-1234567',
'AssociatePublicIpAddress': 'false',
'EC2Subnets': 'subnet-1234567',
'ELBSubnets': 'subnet-7654321',
'SecurityGroups': 'sg-1234567',
'EC2KeyName': 'test',
'ManagedSecurityGroup': 'sg-1234567',
'ELBSecurityGroups': 'sg-1234567',
}
t = Template("""\
- Namespace: aws:ec2:vpc
OptionName: AssociatePublicIpAddress
Value: '$AssociatePublicIpAddress'
""", test)
print t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment