amazon-cloudformation

How to get a specific key in a list of dicts in JSON

How to get a specific key in a list of dicts in JSON Question: I am trying to get the StackId through list_stacks() of the last deleted stack with the name BastionInfraStack (the most recent one). The list_stacks() command returns the following: { "StackSummaries": [ { "StackId": "arn:aws:cloudformation:us-east-2:111111111:stack/Dev-BastionInfraStack/34deb540-9c2f-11ed-90a7-022b01b65a64", "StackName": "Dev-BastionInfraStack", "CreationTime": "2023-01-24T21:36:48.468000+00:00", "LastUpdatedTime": "2023-01-24T21:37:26.782000+00:00", "DeletionTime": …

Total answers: 1

AWS Glue Job Cloudformation – Values Set in Cloudformation Not Sticking

AWS Glue Job Cloudformation – Values Set in Cloudformation Not Sticking Question: Cloudformation Setup Below is not behaving as I expected. The following variables are not being set with the the template below. When the variables are set manually the job runs successfully. IAM Role Type Language Description: "AWS Glue Job Test" Resources: MyJobRole: Type: …

Total answers: 2

botocore.exceptions.WaiterError: Waiter StackCreateComplete failed: Max attempts exceeded

botocore.exceptions.WaiterError: Waiter StackCreateComplete failed: Max attempts exceeded Question: 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 of the IAM role and the duration_seconds configuration value of …

Total answers: 1

How can I create a re-usable CloudFormation template for my Lambda functions?

How can I create a re-usable CloudFormation template for my Lambda functions? Question: I have 9 lambda functions as part of a single CloudFormation project. I feel like the CloudFormation template for each Lambda function is starting to become the same in many places & feels like it’s repetitive YAML code. Is there a way …

Total answers: 2

How to install external modules in a Python Lambda Function created by AWS CDK?

How to install external modules in a Python Lambda Function created by AWS CDK? Question: I’m using the Python AWS CDK in Cloud9 and I’m deploying a simple Lambda function that is supposed to send an API request to Atlassian’s API when an Object is uploaded to an S3 Bucket (also created by the CDK). …

Total answers: 6

Where is the cfnbootstrap folder?

Where is the cfnbootstrap folder? Question: I’m curious about some AWS internals – I don’t have an actual issue, I just want to learn more about this. I’m running Beanstalk with Windows instances. I was poking around some logs in c:cfn and in "C:cfnlogcfn-init.log" and I found some lines like this: File "cfnbootstraputil.pyc", line 159, …

Total answers: 1