Skip to content

spec2cdk: schemas under temporary-schema/us-east-1 is not being auto-populated into aws-cdk-lib #36118

@GavinZZ

Description

@GavinZZ

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

  1. Add a new schema file to temporary-schema/us-east-1 that is a new service namespace
  2. run yarn build in packages/aws-cdk-lib
  3. 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

No one assigned

    Labels

    aws-cdk-libRelated to the aws-cdk-lib packagebugThis issue is a bug.effort/mediumMedium work item – several days of effortp1potential-regressionMarking this issue as a potential regression to be checked by team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions