Created
May 19, 2016 16:03
-
-
Save jordanfarrer/7a1225aa9eba3486ca611db85fdcedf4 to your computer and use it in GitHub Desktop.
troposphere-sample
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
from troposphere import Ref, Template | |
import troposphere.ec2 as ec2 | |
t = Template() | |
instance = ec2.Instance("myinstance") | |
instance.ImageId = "ami-951945d0" | |
instance.InstanceType = "t1.micro" | |
t.add_resource(instance) | |
print(t.to_json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment