Questions tagged [aws-cdk-custom-resource]
8 questions
2
votes
1 answer
Is there any way to disable auto-rollback on CDK stack
We are creating aws custom resource in a stack using cdk which triggers a lambda. In our case if any failure happens in lambda, it sends a failure signal to custom resource and custom resource trigger auto-rollback to previous version of stack. We…

priyadhingra19
- 333
- 4
- 15
2
votes
1 answer
aws cdk passing values to a lambda custom resource
I need to pass some values from my cdk v2 stack (Python3.8) to a lambda function (Python3.8) which is custom resource that is called when the stack executes.
This is the lambda
def lambda_handler(event, context):
print('lambda executed')
…

user20358
- 14,182
- 36
- 114
- 186
1
vote
2 answers
Cannot use response from AWS CustomResource in CDK (via AwsSdkCall)
I have a VPC endpoint, and I want to retrieve its private IP addresses (to map to an Application Load Balancer through a Target Group).
I do that in two steps:
First I create an AwsCustomResource to retrieve its Network Interface IDs, using…

Romain Spinelli
- 185
- 5
1
vote
1 answer
Throw error from custom resource function not resulting in stack creation failure
I am implementing a custom resource in CDK. In the success scenario all works well. The CDK stack is deployed and the custom resource calls the Lambda function it should invoke using the construct AwsCustomResource. The stack deployed to the account…

SomeDutchGuy
- 2,249
- 4
- 16
- 42
0
votes
0 answers
AWS CDK AwsCustomResource with multiple steps in onCreate
I'm trying to use CDK (python) to copy three AMIs to another region and share it in that region with our organisation ARN. I can copy the image ok, although I still need to implement isComplete somehow so it waits for the copy to finish.
The main…

ScottN
- 5
- 2
0
votes
1 answer
How to trigger off a custom resource lambda in a different account
I have an app stack that fires off a custom resource lambda on every deploy. Currently the custom resource lambda is in the same app stack and both are running in the same account. Both are built in Python 3.8
This is how its structured now where…

user20358
- 14,182
- 36
- 114
- 186
0
votes
0 answers
How to include a file for importing objects in aws lambda that is a custom resource for cdk v2?
I am using python 3.8 as the lambda runtime for my lambda function which I am trying to deploy using cdk v2. This is a lambda as a custom resource that runs every time the stack deploys.
This is the folder structure
…

user20358
- 14,182
- 36
- 114
- 186
0
votes
1 answer
Python AWS CDK Custom resource only executes the first time
I have wired up a Python 3.8 lambda function as a custom resource in a cdk stack. The stack ran and triggered off the lambda execution. However on subsequent updates to the stack it does nothing to call the lambda custom resource.
This is the…

user20358
- 14,182
- 36
- 114
- 186