Skip to content

Instantly share code, notes, and snippets.

@jordanfarrer
Created May 19, 2016 16:03
Show Gist options
  • Save jordanfarrer/7a1225aa9eba3486ca611db85fdcedf4 to your computer and use it in GitHub Desktop.
Save jordanfarrer/7a1225aa9eba3486ca611db85fdcedf4 to your computer and use it in GitHub Desktop.
troposphere-sample
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