aws-cdk Questions

2

I have this project structure (where control is the name and root of my project): control |_ src |_ control_loader -> this has a function inside called also control_loader |_ utils |_ some_he...
Hock asked 1/5, 2022 at 20:22

2

I have two CDK/Cfn stacks which instantiate application load balancers with SSL certificates. I'm using DNS validation which the CDK manages by creating a Lambda function which requests and validat...
Crashland asked 4/12, 2022 at 4:22

5

Solved

I am new to AWS with python. I came across boto3 initially, later somone suggested cdk. What is the difference between aws cdk and boto3?
Woo asked 4/5, 2021 at 4:47

2

I am working on a cdk deploy script and I have it somewhat working but am lost/not having luck setting the different stages and applying different lambdas to the api resources. So I have // Constr...
Cockburn asked 8/12, 2020 at 19:57

3

Context, I have a CDK app with two stacks using the following setup: Stack_A: StateMachine_A Lambda_A S3Bucket_A IAMRole_A Stack_B: StateMachine_B SageMakerTrainJob_B IAMRole_B StateMach...
Sacha asked 19/2, 2020 at 19:6

7

Solved

My team has a pipeline which runs under an execution IAM role. We want to deploy code to AWS through CloudFormation or the CDK. In the past, we would upload some artifacts to S3 buckets before cre...
Hammered asked 19/7, 2019 at 18:43

2

I am setting up a CDK application such that it can be deployed to multiple AWS accounts (dev and prod). The prod account was bootstrapped a few weeks ago by another developer but is working as expe...
Leeanneleeboard asked 12/4, 2022 at 19:33

10

Following pipelines readme to set up a deployment pipeline, I ran $ env CDK_NEW_BOOTSTRAP=1 npx cdk bootstrap \ --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \ a...
Insistent asked 6/7, 2021 at 18:7

12

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 get this error: Need to perform AWS cal...
Favourable asked 22/6, 2021 at 7:4

3

Solved

After removing the CDKToolkit stack from cloudformation and trying to recreate it with cdk bootstrap --profile stage-profile command throws an error ⏳ Bootstrapping environment aws://123456/eu-cent...
Borderer asked 17/9, 2022 at 14:17

7

I am installing aws-cdk on windows using powershell, First I was getting Error : "\AppData\Roaming\npm' npm ERR! enoent This is related to npm not being able to find a file." during insta...
Dun asked 10/11, 2020 at 14:50

3

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 credentials have been configured". ...
Writ asked 24/1, 2022 at 17:8

3

What I am trying to do is send an event from a different AWS account to my account which contains the eventbus. For that I am trying to attach a role/policy to EventBus but I am not able to. I trie...
Supportable asked 12/8, 2020 at 0:13

4

After i create a cloud-watch event rule i am trying to add a target to it but i am unable to add a input transformation. Previously the add target had the props allowed for input transformation but...
Mutt asked 30/12, 2019 at 7:40

4

I am trying to set up a static website using an S3 bucket using the cdk. However, when I deploy the stack I receive the error API: s3:PutBucketPolicy Access Denied. The CLI user I am using has admi...
Emissary asked 8/5, 2019 at 17:5

4

I'm trying to reference a couple of subnets to create ec2 instances but I'm sort of stuck. Let's say I have this: const vpc = new Vpc(this, 'gwc-vpc', { cidr: "10.20.0.0/16", maxAzs: 3, subnet...
Janejanean asked 27/9, 2019 at 15:0

6

I am learning the AWS CDK, and this is a problem I can't seem to figure out. JS/Node are not languages I use often, so if there is some obvious native thing that I am missing, please don't be too h...
Pym asked 23/10, 2020 at 20:44

2

Solved

API Gateway has the concept of stages (e.g: dev, test, prod), and deploying multiple stages via the AWS Console is very straightforward. Is it possible to define and deploy multiple stages with A...
Finisterre asked 18/6, 2020 at 11:40

4

Solved

Introduction I have some TypeScript code that uses CDK to create an API Gateway and a Lambda. It works and deploys to a standard AWS URL. So far so good. I now need to transfer the API Gateway so t...

29

I am trying to run CDK commands to check the diff of my local and remote stack. I am using the following command. cdk diff --profile saml I am getting the following error message Unable to re...
Pharisee asked 20/11, 2019 at 21:17

1

I want to do something like following in the AWS CDK. const a = new RandomObject(this, 'randomValue1', 'randomValue2').lambdaFunction; const b = new RandomObject(this, 'randomValue111', 'randomValu...
Phasis asked 22/7, 2021 at 1:31

2

Solved

I did some clean up in my S3 buckets and deleted S3 bucket with weird names. Now my CDK stacks are in weird states. I have some CDK stacks running. $cdk ls shows LambdaHoroscrape I destroy the stac...
Retrospection asked 5/12, 2021 at 0:8

7

I am trying to access S3 via aws-sdk in my lambda function. import S3 from 'aws-sdk/clients/s3'; const s3 = new S3(); const { Contents: results } = await s3.listObjects({ Bucket: process.env.DOCUM...
Angers asked 23/11, 2022 at 16:19

2

Solved

I am trying to setup a brand new pipeline with the last version of AWS CDK for typescript (1.128). The creation of the pipeline is pretty straight forward. I have added sources and build stages wit...
Toland asked 21/10, 2021 at 15:56

4

Solved

I'm unable to find out how to get the api key out of an apigateway key. I can get its ID and its ARN but not the value. I know you can specify the value when creating the key, but not how to retrie...
Food asked 10/2, 2021 at 18:5

© 2022 - 2024 — McMap. All rights reserved.