-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packagebugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp1potential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member
Description
Describe the bug
I'm testing adding CFN schemas to temporary-schema/us-east-1 under the spec2cdk tool, but I realize that if this is a new service, the generated L1 is now being added into the packages/aws-cdk-lib.
After some investigation, the new schema service name is not being recognized in the db object https://github.com/aws/aws-cdk/blob/main/tools/@aws-cdk/spec2cdk/lib/generate.ts#L128.
However, I did try running below directly from spec2cdk tool and the generation is working.
bin/spec2cdk lib/services --service AWS::MyServiceName
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version
N/A
Expected Behavior
Generate the new service L1 successfully into packages/aws-cdk-lib
Current Behavior
Does not generate the new service L1 construct
Reproduction Steps
- Add a new schema file to
temporary-schema/us-east-1that is a new service namespace - run
yarn buildinpackages/aws-cdk-lib - Observe that the new L1 is not generated.
Possible Solution
No response
Additional Information/Context
No response
AWS CDK Library version (aws-cdk-lib)
latest
AWS CDK CLI version
Not relevant
Node.js Version
20
OS
N/A
Language
TypeScript
Language Version
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packagebugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp1potential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member