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"}, ...

PyCharm intellisense for boto3

having problems seeing full intellisense (code completion) options in PyCharm. working with python 3.4 on Windows. the suggests are partially working: import boto3 s = boto3.Session() (boto3....

How to write pseudo parameters in troposphere?

I want to use the pseudo parameter for a TopicConfigurations topics. So that I can allow the selection of a arn. How can I write a pseudo parameter using troposphere? Topic Configuration:...

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...

AWS Cloudformation created role not showing in identitypool dropdown

I've created a cloudformation template by using Troposphere. I am however stuck on attaching a role to the identity pool. Both the role and identitypool was created fine - but the role...

AWS Config and Troposhpere

I'm looking for documentation on how to configure AWS Config utilizing Troposphere. Unfortunately I am having a hard time finding useful documentation for this particular case. I've looked over...

AttributeError: module '__main__' has no attribute 'text_process'

Context i am deploying my ml model on lambda; after successfully deployment when i hit gateway URL i am getting 500 response and and logs are Traceback (most recent call last): File...

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;...

Running AWS SAM build from within Python script

I'm in the process of migrating entire CloudFormation stacks to Troposphere, including Lambda and Lambda-reliant CFN Custom Resources. One of my goals is to circumvent the creation of template...

How to load config files in the cloud formation template using troposphere?

I am using troposphere to generate a CloudFormation template. I am trying to create an autoscaling group of EC2 instances running LAMP Stack. I need to install packages and create config files on...

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...

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...

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...

Why does this CloudFormation Template script not work?

I'm trying to create a stack on AWS CloudFormation, with an EC2 instance and 2 S3 buckets. My script is attempting to assign a Policy to the EC2 instance that allows access to the Storage bucket,...

Pipenv dependency error with PyYAML in Zappa

I am getting an error after updating zappa package on pip env I have tried pipenv lock --clear and then retry the install and pipenv install --skip-lock following is a pipenv graph --reverse for...

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...

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...

Triggering a lambda function from SNS

I have a use case in which i have a couple of lambda function which i want to be triggered by an SNS. This is the cloudformation template that i am using and it is generated by...

How to deploy MySQL docker image on AWS ECS?

I have troubles deploying MySQL image on AWS ECS FARGATE. The cloudformation script that i have is this (dont mind the syntax, i am using python lib Troposphere to manage cloudfromation...

The deployment specifies that the revision is a null file, but the revision provided is a zip file

I am using CodeDeploy integrated into CodePipeline. I am trying to deploy an image from ecr to ecs. The whole infrastructure is built with CloudFormation. The template for the Pipeline deployment...

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...

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...

ECS cluster without Autoscaling

I have a requirement of creating an ECS Cluster without using autoscaling. This is because of a Dedicated Host (DH), Tenancy=Host, is not supported with ASGs. DH is mainly for cost savings and...

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...

Zappa+Flask: A GET request to '/' yielded a 502 response code

I am trying to deploy my flask app on aws lambda via zappa. And I am getting the following error when I do zappa deploy dev: Calling deploy for stage dev.. Downloading and installing...

Associating CloudWatch Alarm with MetricFilter using Troposphere

I'm using a Troposphere script to provision a CloudWatch metric filter and an alarm. In CloudWatch, it's possible to manually create an alarm that goes off based data that is aggregated from logs...

Zappa packaged lambda error ..botocore.exceptions.SSLError: SSL validation failed for <s3 file> [Errno 2] No such file or directory

Running AWS lambda service packaged using Zappa.io The service is running however, its not able to reach the S3 file due to ssl error Getting the below error while trying to access remote_env from...

How to troubleshoot Kinesis Analytics SQL application?

I have a KA SQL application deployed via CloudFormation. It is meant to read the data of the kinesis stream then run simple SQL count query and output data to Firehose. Firehose in its turn should...

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...

Zappa deployment error - troposphere==2.7.1 didn't help AttributeError: 'Template' object has no attribute 'add_description'

I have migrated my python project from 2.7 to 3.8. and I am trying to deploy using zappa. But, as soon as it's starting updating Lambda function configs it hits this error. Updating Lambda...