Category "aws-cdk"

Reuse a parent CDK Stack in other App project

First at all, it's important mention that I'm not using CDK as usual. Instead I'm creating resources on-the-fly programatically. So, basically, I have a multi-t

Using CDK to Create a Step Function With Dependencies on Other AWS Resources (Like a Lambda) Owned By Different Projects

We're using AWS Step Functions in our application. We have one step function we're creating with the use of the CDK as part of a deployment of Application A fro

AWS CDK - Cognito UserPool authorizer on API Gateway not working

My goal is to set up some lambda functions which are public (i.e. no authorization required to send requests) and other ones which require a User to be logged i

AWS CDK : Exception while creating API Gateway with VPC Interface Endpoint

I am trying to lookup for an existing VPC, retrieve all the private subnets (making sure there is only private subnet in each availability zone). Create VPC end

Allow AWS Aurora VPC Cluster to be publicly accessible using CDK

I have tried configuring the RDS cluster using cluster.connections.allowDefaultPortFromAnyIpv4(); but still I am not able to connect to my postgres instance, it

Default credentials can not be used to assume new style deployment roles

Following pipelines readme to set up a deployment pipeline, I ran $ env CDK_NEW_BOOTSTRAP=1 npx cdk bootstrap \ --cloudformation-execution-policies arn:aws:

CDK deploy results in "Bucket named 'x' exists, but not in account 067685711111. Wrong account?"

I am modifying a CDK pipeline that works. I am adding a lambda, and when this code modification is made, the pipeline fails with an error. import * as cdk from

AWS CDK deploy from circleCi fails with credential error but other aws services do not

I am running a cdk deploy build on circleCi, and when the step CDK deploy comes it gives me "Need to perform AWS calls for account ************, but no credenti

cdk python transit gateway route table entry

Using cdk I'm trying to make a route table entry. The target I'm trying to add is a transit gateway. I'm using the Subnet construct and the add_route() method.

CDK: aws_cdk.aws_ecs.EcrImage vs aws_cdk.aws_ecs.ContainerImage

What is the difference between using aws_cdk.aws_ecs.EcrImage and aws_cdk.aws_ecs.ContainerImage to create instances using CDK?

How to disable life-cycle hooks when creating auto scaling group?

Hi I am working on aws cdk to create resources in aws. When i created aws auto scaling group, I see there are many other resources got created. autoScallingGr

AWS CDK | Create a REST API spanning multiple CDK Stacks

We are using AWS CDK to create our Serverless REST API. However, there are a large number of endpoints and sometimes we have to destroy and redeploy our stack.

How to add environment variable to CloudFront function in CDK?

I've created an CloudFront function in CDK: func = cloudfront.Function( self, "redirect", code=cloudfront.FunctionCode.from_file( file_path=

aws_cdk events rule target for cdk pipelines fails

below error pops when I try to target a CDK pipeline using events targets. jsii.errors.JavaScriptError: Error: Resolution error: Supplied properties not corr

Get 403 Error when trying to use CloudFront OAI for S3 bucket access

I have a S3 bucket which hosts my react website. I banned public access to the bucket, and configured an OAI to access the S3 bucket. I can see that I have gran

Create VPC endpoint for S3 bucket lambda access using AWS CDK

I am building a system using Python flavored AWS CDK. I have a lambda function with an attached EFS. To use EFS, I am required to put the lambda function inside

Need to perform AWS calls for account xxx, but no credentials have been configured

I'm trying to deploy my stack to aws using cdk deploy my-stack. When doing it in my terminal window it works perfectly, but when im doing it in my pipeline i ge

How to install AWS Load Balancer Controller in a CDK project

I am trying to write a high-level CDK construct that can be used to deploy Django applications with EKS. I have most of the k8s manifests defined for the applic

Does local node version affect the cdk command for aws?

I was wondering if I have node version 16 on my computer and if I develop my aws lambda locally with cdk and specified the runtime as NODEJS_14, will it still w

How to determine and change AWS CDK bootstrap version?

I am getting this error: arn:aws:cloudformation:us-east-1:<account>:stack/cdk-workshop/79cdc290-bb48-11ec-87f4-0a9e17cd1915 current credentials could not