-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(cfnspec): resources not defined in us-east-1
cfn specification are not found as l1 resources in CDK
#22565
Comments
us-east-1
cfn specification are not found as l1 resources in CDK
Downloading all files from https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html and merging them with: After creating the Eliminating the property changes the remaining diff for v105.0.0 is:
I assume hard coding all URLs and merging before executing |
Some AWS services are only in us-west-2 region, while CDK uses the AWS CloudFormation resource specification from us-east-1 for generating L1. This change adds suppport for resource specifications from additional regions, with an explicit allow list for services supported for this region. Fixes #17893 Fixes #22565 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Summary:
|
Describe the bug
The CDK has no L1 constructs for resources that are not declared in us-east-1.
The one example we have of constructs that are only declared in regions other than us-east-1 is device-farm, which is only present in the us-west-2 AWS CloudFormation resource specification, as the AWS Device Farm service is only available in us-west-2.
Credit to @workeitel for discovering this in #17893.
Expected Behavior
The CDK should look at all regional AWS CloudFormation resource specifications when discovering resources.
Current Behavior
Even though the AWS CloudFormation resource specification is regional, the CDK only looks at us-east-1.
Reproduction Steps
CDK lacks L1 resources for Device Farm, even though they are present in the us-west-2 AWS CloudFormation resource specification.
Possible Solution
Rather than relying on any individual AWS CloudFormation resource specification, merge all the AWS CloudFormation resource specifications together to update the spec. It looks like it wouldn't be very difficult to hash merge the PropertyTypes and ResourceTypes together to get a superset of all the properties and resources available across all regions.
Additional Information/Context
No response
CDK CLI Version
2.46.0
Framework Version
No response
Node.js Version
Not relevant
OS
Not relevant
Language
Typescript, Python, .NET, Java, Go
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: