-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-ecrRelated to Amazon Elastic Container RegistryRelated to Amazon Elastic Container Registryeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
The fromLookup method causes an error if the target repository was not found. However it would be also good not to cause an error and to return dummy value in that case.
Now, with the PR merged in aws-cdk-cli ([email protected]), we can ignore errors and return dummy value with mustExist option in CC API Provider.
Use Case
If the target repository exists in the AWS account, it will be used, and if not, a new repository can be created in the stack.
Proposed Solution
- Added the
mustExistoption inRepositoryLookupOptions.- Pass it to
mustExistforContextProvider.getValue
- Pass it to
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.187.0
Environment details (OS name and version, etc.)
Mac
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ecrRelated to Amazon Elastic Container RegistryRelated to Amazon Elastic Container Registryeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2