-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-cloudfrontRelated to Amazon CloudFrontRelated to Amazon CloudFrontbugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp1
Description
Describe the bug
The error is introduced by the PR: #32252
When doing validation, it only consider the value is type of string, but it could also be Token if pass as reference .
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
CDK should build and deploy successfully.
Current Behavior
CDK throws webAclId.startsWith is not a function error during build and deploy.
Reproduction Steps
- Create a distribution with
webAclIdparameter. - Passing token type value to
webAclId, for example:
cfn.getNestedStack("WafStack").includedTemplate.getOutput("WebAclArn").valuePossible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.188
Framework Version
No response
Node.js Version
18.20.4
OS
ubuntu
Language
TypeScript
Language Version
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cloudfrontRelated to Amazon CloudFrontRelated to Amazon CloudFrontbugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp1