(ecr): (false positive policytext errors from Python since #24401) #25028
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
Describe the bug
#24401 introduced a warning when an ECR resource policy contains resources. When adding a resource policy from Python (haven't tried other programming languages) without resources, the warning is triggered nevertheless.
Expected Behavior
No warning.
Current Behavior
False-positive warning:
Reproduction Steps
A sample repository is here: https://github.com/michael-k/cdk-ecr-resource-policy
The warning can be seen in the GitHub Actions output here: https://github.com/michael-k/cdk-ecr-resource-policy/actions/runs/4668379710/jobs/8265393358#step:10:13
Sample code:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.73.0 (build 43e681e)
Framework Version
2.73.0
Node.js Version
16
OS
Linux
Language
Python
Language Version
3.10.11
Other information
Synthesized CloudFormation template:
The text was updated successfully, but these errors were encountered: