3,900 questions
Tooling
0
votes
0
replies
27
views
How to include dynamic runtime values in CloudWatch alarms
I want to include dynamic runtime data in CloudWatch alarms. Specifically, when my application emits metrics with contextual information, I want that context to appear in the alarm descriptions or ...
0
votes
0
answers
35
views
AWS Amplify keeps clearing my session tokes from localStorace after a network droput
I'm a bit frustrated with AWS Amplify, what seems like a basic feature of maintaining sessions is seems to fail if the network drops.
Here is my Cogntio CDK setup, the refreshTokenValidity is set to ...
0
votes
0
answers
39
views
AWS CDK repository authentication
I'm working on a CDK deployment. I'm trying to set up a stack that creates a ECR image which is completely build the way I want. However, I'm stuck at the part of getting the private repositories ...
0
votes
1
answer
56
views
How to create Amazon SES identity verification CNAME records in Route 53 across different AWS accounts using CDK?
I have two AWS accounts:
DNS Account: Contains my Route 53 hosted zone for example.com
Email Account: Where I need to send emails using Amazon SES with the domain example.com
To verify the SES email ...
0
votes
1
answer
61
views
AWS CDK not updating ECR with ecrAssets.DockerImageAsset()
I use CDK to generate a CloudFormation stack.
When I run cdk synth and cdk deploy, the ECR image and the Task definition don't get updated. In order to force the update, I have to:
delete the built ...
Best practices
0
votes
0
replies
42
views
How to run tests with CDK pipelines
We are building and deploying a few system using the AWS CDK Pipeline, mostly with dotnet
Most cases we are building the deployed apps using dockerfile assets referenced in the CDK
Should we run the ...
0
votes
0
answers
59
views
AWS CDK use api gateway in a nested stack
I have this api gateway in my main stack:
api_gateway = _api_gw.LambdaRestApi(
self,
f"{construct_id}-gw-api",
handler=lambda_hello,
rest_api_name=f"gw-api{env_ext}"...
1
vote
1
answer
72
views
aws_secretsmanager: Secret Value is not correct. How does this work?
I want to create a new secret via cdk. It seems that I don't understand it...
Python code:
foo = secretsmanager.Secret(
self,
"foo",
generate_secret_string=...
0
votes
1
answer
65
views
Significant import discrepancy in Python CDK v2 when enabling API Gateway logging
I have been modifying an AWS CDK v2 stack (Python) to generate an API Gateway v2 stage with logging enabled. Sounds simple, there are countless examples on the internet, and countless agentic coding ...
0
votes
1
answer
41
views
How to wire AWS amplify resources together
In an AWS Amplify backed application, I can define two data models Inventory and Order. Then Amplify generates a GraphQL API and underlying DynamoDB tables for these models.
Then I can create a ...
-1
votes
1
answer
90
views
AWS CDK: using stages as "stacks" and apps as "stages"
I am working on migrating our Typescript application from Serverless Framework to AWS CDK.
Background
Our application started out as mostly just lambda functions, api gateways and some IoT resources. ...
0
votes
0
answers
56
views
Generating APP_KEY for Laravel using AWS CDK Constructs
I'm trying to create the APP_KEY via AWS CDK but I don't think there is a relevant Construct to do this.
I tried this:
APP_KEY: ECSSecret.fromSecretsManager(
new Secret(...
0
votes
1
answer
101
views
Changing DynamoDB from Provisioned to On Demand via CDK process?
I'm trying to change my DynamoDB table from Provisioned to On Demand via CDK.
The commented out code is what my table was provisioned with before, for autoscaling.
table = new TableV2(this, props....
0
votes
0
answers
69
views
Cloudformation/CDK Resource Policy creation missing Condition statement
Objective: Create a lambda_layer_version permission policy so that lambda functions from remote AWS accounts in the same AWS Organization can access the lambda_layer.
Problem: The Lambda_layer_version ...
0
votes
2
answers
117
views
AWS CDK how to point to specific aws profile at a project-level
I have a CDK app in typescript to deploy AWS resources for a specific project. I have multiple AWS accounts for different companies. I would usually do the following before running any CDK command:
...