Category "aws-cdk"

Use AWS CDK to trigger AWS Glue Worklfow from EventBridge

As mentioned in this link, it's not supported by Level 2 constructs. But, it's possible to use Level 1 Constructs to implement it. Can anyone show me how to do

How to import existing lambda from arn and add SQS as event source? Amplify

I'm trying to create an SNS topic that an SQS queue subscribes to which acts as an event source for a Lambda function. I'm trying to do this with the amplify cd

AWS cdk error when trying to create App Runner

I'm trying to deploy my application with App Runner in AWS via CDK. It's based on https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apprunner.Service

AWS CDK Credentials not found when Bootstrapping

I'm getting the following error within zsh when issuing the command: Command - ~ % cdk bootstrap aws://******/*region* Error (snip) - Environment aws://****

How to register SNS topic to bounce (or complaint) email notifications with AWS CDK C#?

I have SES 'verified identity' email, that sends emails. Now using CDK I'm creating SNS topic and Lambda to handle bounce and complaint emails sent by that veri

aws_cdk python error: Unzipped size must be smaller than 262144000 bytes

I use CDK to deploy a lambda function that uses several python modules. But I got the following error at the deployment. Unzipped size must be smaller than 2621

Cannot add dependencies for sub packages in CDK V2 in Python

CDK v1 to v2 migration guide suggests adding requirements as below: aws-cdk-lib>=2.0.0 constructs>=10.0.0 aws-cdk.aws-codestar-alpha>=2.0.0alpha1 ...

Custom domain name with AWS AppSync using CDK v2

I try to add a custom domain name to my AWS AppSync API using the AWS CDK (v2). First, I manually added a certificate for my domain. I did this in the us-east-1

SAM-local fails to start API with multiple stacks

I want to add resources to my root stack and somehow found a function where I can first get stack first like this my_api = RestApi.from_rest_api_attributes(

Avoid re-build of AWS Lambda Layer in CDK

I have a CDK stack that, among other infrastructure elements, deploys an AWS Lambda Layer (or actually a lambda.LayerVersion). I noticed that every time I updat

Aws cdk pipeline stacks keep creating buckets on every deploy

Is there a way to restrict this? I'm not talking about artifact buckets, but everytime I do cdk deploy for my pipeline stack it's creating a bucket. Is there a

AWS CDK - Getting InvalidRouteTableId.Malformed when creating Route Table

I am getting the below exception when trying to create a Route Table through AWS CDK library. I went through the naming standards and am making sure to follow i

The difference between a Stack and Construct in AWS CDK

I'm new to CDK and confused about the difference between a Construct and a Stack. With CDK, we can define reusable cloud components known as Construct, and we c

AWS lambda doesn't return binary content

I have an API which I'm deploying to AWS using CDK. I'm using the lambda proxy integration. I'm trying to create a new API call which will return a zip file, bu

Creating MSK event source mapping for Lambda function fails

I am using the AWS-CDK to create a stack with an AWS-MSK cluster and a Lambda function which should be triggered, when a new message is available in a specific

Policystatement is getting generated while adding SNS destination to Lambda

I have a create-lambda stack and i am adding an existing SNS topic as the destination thru CDK + Python. While deploying the code i am getting an error The func

Invalidate Cloudfront cache with AWS CDK Pipelines

As part of my CodePipeline in CDK I would like, as the last step, to invalidate the Cloudfront cache. This is my current Deploy action step: { stageName: 'Dep

How to specify a validation domain for AWS CDK when using tokens for domain names

I'm requesting a domain certificate from an AWS CDK stack. For the domain name, I use a value from AWS Parameter Store like: const domainName = StringParameter.

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