Questions tagged [troposphere]

A library to create AWS CloudFormation resource descriptions. Useful for automating AWS deployments. Written in Python, available from PyPI.

A library to create AWS CloudFormation resource descriptions. Useful for automating AWS deployments. Written in Python, available from PyPI (https://pypi.python.org/pypi/troposphere/)

65 questions
0
votes
3 answers

How to pass a Troposphere object attribute conditionally?

I'm using Troposphere to build CloudFormation stacks and would like to pass the Elastic Load Balancer ConnectionSettings attribute only if it's set in my configuration, otherwise I don't want to specify it. If I set it to default None then I get an…
Capt. Crunch
  • 4,490
  • 6
  • 32
  • 38
0
votes
2 answers

In python module troposphere I am getting an error "AttributeError: 'module' object has no attribute 'EBSBlockDeviceMapping'"

I'm following the example of some other code that has been written. The code in question looks like this: if virtualname == "ebs": if deviceSize == None: deviceSize = 8 if delOnTerminate == None or delOnTerminate…
efreedom
  • 253
  • 3
  • 8
0
votes
1 answer

How do I add an array of RecordSets into Cloud Formation using troposphere?

I'm using the python module troposphere to create my cloud formation template. Most of it is complete but I seem to be confused about how to create my DNS entries for the load balancer with the RecordSets method/function. The output for this…
0
votes
1 answer

Troposphere Add S3 LifecycleRule to the class LifecycleConfiguration

Method Signature: I have tried to change the implementation some different ways, but its not helping. import troposphere.s3 as S3 class LifecycleConfiguration(AWSProperty): props = { 'Rules': ([LifecycleRule], True), } class…
Anup Singh
  • 313
  • 1
  • 5
  • 18
-1
votes
1 answer

Troposhere to loop EC2 instance creation

I want to create variable number of EC2 instances within my cloudformation template (YAML). I am planning to create a stack for EC2 instance creation and loop the same. I read this is achievable using Troposphere. Can someone help me with a…
Reshma
  • 69
  • 2
  • 11
1 2 3 4
5