My First troposphere code to create instance (sample)

Below is the troposphere library which is used to convert the python script to json and yaml formats which avoids writing of clouformation 🙂   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) with open(‘jaml.yaml’, ‘w’) as f:    // command… Continue reading My First troposphere code to create instance (sample)