Custom Resource GetAtt not working #641
Replies: 4 comments 2 replies
-
We are also having this issue but we are using 2.8.0:
Is there any update on this or has anyone found a workaround? |
Beta Was this translation helpful? Give feedback.
-
The same issue with CDK 2.20.0 |
Beta Was this translation helpful? Give feedback.
-
I had the same issue. The way I fixed this is by removing the Provider, and passing the Lambda function ARN directly as the service token. ` class MediaTailorConfig extends cdk.Construct {
|
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue. The way I fix it is removing Providing an example: lambda handler:
Alternatively, if you don't want to use CdkCustomResourceResponse you can simply send the data back:
CDK Construct:
ref: |
Beta Was this translation helpful? Give feedback.
-
Guidance Question
Custom Resource GetAtt not working
The Question
Hi!, I'm trying to use a CustomResource to create a MediaTailor channel, so far the scripts go well and the channel gets created but I have two issues:
First problem:
From my lambda function I'm returning the following object:
When I try to use
resource.getAtt('HLS').toString()
I get the following error:The second case happens during rollback, even though I'm returning a "PhysicalResourceId" the "DELETE" action receives the same "RequestId" as "PhysicalResourceId" so I don't have a way to find the actual resource and delete it
CDK CLI Version
1.102.0
Example
Example Version
No response
OS
macOS
Language
Typescript
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions