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
1 answer

TargetGroup object does not support attribute TargetGroupAttribute

Using Troposphere and Python I have created an AWS NLB. It works fine, I am just trying to add a new property to it. The property I am trying to add is "deregistration_delay.connection_termination.enabled". But when I try and update my stanza It…
CodeHappy
  • 71
  • 2
  • 10
0
votes
2 answers

Troposphere DynamoDB TimeToLiveSpecification

I am trying to create a JSON Cloudformation template for a new DynamoDB table. I am trying to set the TimeToLiveSpecification but I get errors and the Troposphere documentation isn't clear. I have dynamoDB = t.add_resource(Table( …
SarahJessica
  • 473
  • 1
  • 7
  • 18
0
votes
2 answers

How to install troposphere for python3?

I'm running macOS version 11.0.1. I'm trying to import a module called troposphere I have Python2.7 as well as Python3.9.1 installed When I try to import troposphere using Python2.7 like #!/usr/bin/python from troposphere import Template It does…
Red Bottle
  • 2,839
  • 4
  • 22
  • 59
0
votes
1 answer

AWS::ECS::Cluster object does not support attribute CapacityProviders

Troposphere module version: 2.6.2. Python script: import troposphere.ecs as ecs from ecs import * ... template.add_resource(ecs.Cluster( "Cluster", CapacityProviders=["FARGATE", "FARGATE_SPOT"] )) ... Why am i getting this error when…
Cezar A
  • 104
  • 1
  • 5
0
votes
1 answer

Template validation error: invalid template resource property

I'm validating a CloudFormation template that was generated via a Troposphere script. The resource in question which seems to be causing the error is a Metric Transformation which is defined as follows in the Troposphere…
Adam Freymiller
  • 1,929
  • 7
  • 27
  • 49
0
votes
1 answer

Hi , i have written a code to create CloudFormation template using troposphere Getting Syntax error while running the code

i have written a code to create CloudFormation template using troposphere where i am creating EC2 instance and assiging SG and EIP but getting error while running python code. Code is below: from troposphere import Ref, Template, join, GetAtt,…
Abhishek
  • 3
  • 2
0
votes
1 answer

How to add OriginAccessIdentity to AWS S3 Bucket Policy using troposphere

I have a AWS Cloudformation stack, created in Python using Troposphere. I need to add OriginAccessIdentity to the S3 bucket access policy. Amongst other things, I am importing the following: from awacs.aws import ( Allow, Policy, …
0
votes
1 answer

How to use regex in CF template for conditions

I am using a condition in troposphere CF template, but unfortunately there are more than 10 conditions and AWS CF supports only 10 of them. The condition checks if the app name start with particular name. Is there a way to use regex in condition so…
Rob
  • 150
  • 1
  • 4
  • 17
0
votes
1 answer

List comprehension to dynamically populate attribute of object

What’s the correct way to dynamically populate the list given to the attribute Value? At the moment its its fixed to 3 (0-2), but would be more useful if it was based on INSTANCE_PARAMS[i]["instances"]. I was thinking along the lines of list…
user45097
  • 561
  • 2
  • 7
  • 16
0
votes
1 answer

Adding a subscription to an existing sns topic in troposphere

I have a use case in which i have an existing sns topic and i am creating lambda functions using cloudformation and troposphere . I have to somehow create my stack in such a way in which the topic sends subscriptions to my lambda functions, but the…
Subhayan Bhattacharya
  • 5,407
  • 7
  • 42
  • 60
0
votes
1 answer

In Troposphere, how do I add CustomOriginConfig object

Using troposhphere, I am trying to add CustomOriginConfig to my CloudFront distribution. ..... Origins = [Origin( Id = Join("", ["cloudfront-", Ref("ParamOriginName")]), DomainName = Ref("ParamOriginName"), …
Jez D
  • 25
  • 8
0
votes
1 answer

How do I set cookies for CloudFront distribution using troposphere?

Using troposhphere, I am trying to create CloudFront distribution. CacheBehaviors = [ CacheBehavior( TargetOriginId = Join("", ["cloudfront-", Ref("ParamOriginName")]), PathPattern =…
Jez D
  • 25
  • 8
0
votes
1 answer

aws-cdk construct - Certification Manager

Below is my understanding on talking to AWS API(REST) using SDK approach or CF template generation tools(like AWS_CDK or Troposphere) Working with AWS certification manager, we would like to create private root CA using aws-cdk constructs. But the…
overexchange
  • 15,768
  • 30
  • 152
  • 347
0
votes
1 answer

How to fix expected in python code

I am using Troposphere to create CloudFormation templates. If I use a variable or string I get the error - , expected I am new to troposphere and python so any help is appreciated. My code when…
0
votes
1 answer

Importing ALBName from StackA to use in StackB

I am creating an ALB in amazon with StackA named StackA and I export the ALB name and value using Export=Export((Join("", [Ref("AWS::StackName"), "-ALB"]))), Value = GetAtt(ApplicationElasticLB, "DNSName") I can see in AWS Console that the value…
Rob
  • 150
  • 1
  • 4
  • 17