All Questions
8 questions
1
vote
1
answer
515
views
boto3 cloudformation list_stacks() function is not listed all the stacks in cloudformation
I have created a stacks in Cloud formation. When try to get all the stacks through aws cli its working but i tried to get all the stack via boto3 API in python. Here, it didn't collect all the stacks ...
0
votes
1
answer
8k
views
botocore.exceptions.WaiterError: Waiter StackCreateComplete failed: Max attempts exceeded
I am getting above error when running a python code with boto3. It is erroring out at 1 hour all the time and the stack is being created even after this error. I have applied both MaxSessionDuration ...
0
votes
2
answers
207
views
Validate all cloudformation files in a s3 folder
CloudFormation validate supports validating a cloudformation template in s3.
How to validate all files in a s3 location. The files are located in a folder.
2
votes
1
answer
1k
views
How do I centralize reused custom Python functions in AWS SAM?
I've created a AWS Cloudformation Stack with a template.yaml file that implements several lambda functions. There are several Python functions that some/all of the lambda functions use. Is there a ...
1
vote
2
answers
897
views
How to find if SQS queue was created manually or using CF template?
I've tried the following, but it's not giving me any CF Template ID or any description that allows me to find.
Example:
aws sqs get-queue-attributes --queue-url https://sqs.us-east-1.amazonaws.com/...
1
vote
1
answer
2k
views
Python transform and convert yml to json
I am trying to create a online liner (or two) for converting YAML file to Json and perform a simple transformation.
Here is the code:
#!/usr/bin/python
import yaml,json
yml="""
- AppName: Wiki-...
0
votes
1
answer
2k
views
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 ...
9
votes
1
answer
6k
views
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":"...