`cdk deploy –all` doesnt deploy all modified stacks
When I run cdk deploy --all
to deploy all stacks, as suggested by the aws docs, I dont get the desired behavior.
`cdk deploy –all` doesnt deploy all modified stacks
When I run cdk deploy --all
to deploy all stacks, as suggested by the aws docs, I dont get the desired behavior.
AWS CDK tutorial generates a broken template?
I’m working through the AWS Cloud Development Kit (CDK) tutorial at https://docs.aws.amazon.com/cdk/v2/guide/hello_world.html. Working in CloudShell, I got through step 7 with no trouble; step 6 produced the following template.
Configure ElasticBeanstalk’s loadbalancer to return fixed response of 400 by default using CDK
I’m trying to deploy an ElasticBeanstalk instance which has a loadbalancer rule to only forward requests to a target group when their Host header value matches an expected url. I’ve managed to setup this rule, but I want any other requests to get returned 400 responses.
Received response status [FAILED] from custom resource. Message returned: Command died with
What am I trying to do
i was trying o build a stack using aws cdk , application load balancer with two ec2 instance
@jsii/kernel.SerializationError: Passed to parameter props of new aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationTargetGroup: Unable to deserialize value as aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationTargetGroupProps | undefined
├── ???? Failing value is an object
│ { ‘$jsii.struct’: [Object] }
╰── ???? Failure reason(s):
╰─ Key ‘targets’: Unable to deserialize value as array<aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationLoadBalancerTarget> | undefined
├── ???? Failing value is an array
│ [ ‘${Token[TOKEN.111]}’, ‘${Token[TOKEN.137]}’ ]
╰── ???? Failure reason(s):
╰─ Index 0: Unable to deserialize value as aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationLoadBalancerTarget
├── ???? Failing value is a string
│ ‘${Token[TOKEN.111]}’
╰── ???? Failure reason(s):
╰─ Value does not have the “$jsii.byref” key
at Object.process (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:11477:19)
at Kernel._Kernel_toSandbox (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:10455:25)
at C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:10471:38
at Array.map ()
at Kernel._Kernel_boxUnboxParameters (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:10471:23)
at Kernel._Kernel_toSandboxValues (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:10459:101)
at Kernel._Kernel_create (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:10119:115)
at Kernel.create (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:9790:93)
at KernelHost.processRequest (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:11707:36)
at KernelHost.run (C:UsersAcerAppDataLocalTemptmptnruo9odlibprogram.js:11667:22)