-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): cannot
cdk import
resources that allow multiple identifiers
Some resources that can be imported by CloudFormation allow multiple identifiers. For example, `AWS::DynamoDB::GlobalTable` allows `TableName`, `TableArn`, and `TableStreamArn`. The CLI used to interpret multiple identifiers as "all must be present", but the contract is actually "exactly one must be present": * CloudFormation would fail the import if you supply all the fields; * but CDK would skip the import if you left one out. The effect is that it is impossible to import resources that allow more than one identifier. Fix this by being satisfied as soon as we have one identifier from the set, instead of expecting all of them to be filled. Fixes #20895.
- Loading branch information
Showing
1 changed file
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters