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
18
votes
3 answers

Trying to pass parameters from Master to child template

I'm trying to pass list parameters from master to child template, however I'm running into two errors.. These are my current parameters on the master template. "Parameters": { "ELBSubnets": { "Default":…
Mo Ali
  • 639
  • 1
  • 6
  • 17
9
votes
1 answer

Using troposphere for cloud formation, how do I add "propagate at launch" to tags

I'm using the python module troposphere to generate tags in my cloud formation template. The current script generates: "Tags": [{"Key":"Name", "Value":"MyTagName"}, {"Key":"Version", "Value":"123456"}] but I need to…
efreedom
  • 253
  • 3
  • 8
8
votes
3 answers

Convert CloudFormation template (YAML) to Troposphere code

I have a large sized CloudFormation template written in Yaml, I want to start using Troposphere instead. Is there any easy way to convert the CF template to Troposphere code? I have noticed this script here…
Sam Anthony
  • 1,669
  • 2
  • 22
  • 39
7
votes
0 answers

Generate swagger json definition for AWS API Gateway

As part of our continuous delivery pipeline I'm going to deploy AWS API Gateway APIs. The easiest way to do this is using Amazon API Gateway Importer that can create or update Amazon API Gateway APIs from a Swagger representation. AWS provides API…
4
votes
2 answers

Access Denied for bucket logging form Applicationloadbalancer : Please check S3bucket permission

Access Denied for bucket: appdeploy-logbucket-1cca50r865s65. Please check S3bucket permission (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: InvalidConfigurationRequest; Request ID: e5e2245f-2f9b-11e9-a3e9-2dcad78a31ec) I…
3
votes
2 answers

How to attach an AWS managed policy to a role in cloudformation and troposphere

In my troposphere code i basically want to create an sns topic and a lambda execution role to which i can attach a few managed policy from aws. But the issue is i cannot find a way to just reference the arn name of the managed policy. Below is my…
3
votes
1 answer

Provisioning - AWS_CDK vs Troposphere vs Stacker

Troposphere is a python project for AWS provisioning. This is a mature project. AWS CDK is still in developer preview. cdk diff does help on ease of state maintenance before cdk deploy. Am not sure, how troposphere helps us on state maintenance?…
3
votes
1 answer

How do I create a Lambda that's called on a regular interval by a cloudwatch event with troposphere?

I've created a Lambda function that I want called every 5 mins, or once a day, or whatever. How do I set that up with troposphere? I can't find an example anywhere.
3
votes
1 answer

In python the Jinja2 template returns a backslash in front of a double quote, I need to remove that

One of the lines in my jinja2 template needs to return STACKNAME=\"",{"Ref":"AWS::StackName"},"\" Putting the above into the template returns STACKNAME=\\\"\",{\"Ref\":\"AWS::StackName\"},\"\\\" I tried creating a variable DQ = '"' and…
efreedom
  • 253
  • 3
  • 8
2
votes
0 answers

Import bash script as UserData in AWS CFN template using Troposphere

I am trying to create an AWS template using Troposphere and I am stuck at a point where I have to use my Bash Script as UserData. My main problem being Ref used in Bash Script. I am importing Bash Script as a file read and encode them to Base64…
2
votes
1 answer

Pre-populated list of availability zone options as parameter for cloudformation template

I would like to present a list of availability zones for a parameters options in a CloudFormation template for the region in the console. Preferably using the Troposphere Python mod. I see that I would be calling Fn::GetAZs to create a list of…
Narayan
  • 91
  • 6
2
votes
2 answers

Choosing active SES ReceiptRuleSet in CloudFormation / Troposphere

I am creating a ReceipRuleSet with troposphere like this : ReceiptRuleSet( title="SesRuleset", RuleSetName="ses-ruleset" ) However, when I upload the stack with the generated CloudFormation template, the RuleSet appears as inactive in…
2
votes
1 answer

Python troposphere: How to combine two strings containing Join

I'm using the troposhere library and I'm trying to combine two string objects which have Join: from troposphere import Join str1 = Join('', [""" sed -i -e '/hostname/s/=.*/=example.com/' /tmp/file.app \n"""]) and str2 = Join('', [""" sed -i -e…
aRTURIUS
  • 1,230
  • 2
  • 13
  • 31
2
votes
1 answer

AWS Scheduled Event Rule for Lambda doesn't work in CloudFormation

Having trouble configuring AWS Lambda to be triggered by a Rule->Trigger as a Scheduled Event Source using CloudFormation (in reality, using Python's Troposphere.) This has cost me a couple of days already, and any help would be appreciated. Here's…
vivri
  • 885
  • 2
  • 12
  • 23
1
vote
0 answers

Invalid iops to storage (GB) ratio for engine name aurora-postgresql and storage type aurora

I tried to create aurora PostgreSQL using troposphere. self.add_resource( rds.DBInstance( identifier, AllocatedStorage="50", Engine="aurora-postgresql", MasterUsername="myName", …
prime
  • 769
  • 1
  • 13
  • 27
1
2 3 4 5