01/18/2023, 6:41 PM
Whenever I try to create a AWS Elastic Container Registry Policy I get the following error:
Error creating ECR Registry Policy: InvalidParameterException: Invalid parameter at 'PolicyText' failed to satisfy constraint: 'Invalid registry policy provided'
I noticed that the Pulumi API for RegistryPolicy doesn’t take a repository ID, only a policy ( Whereas the terraform API takes both a repository ID and a policy ( Is it possible that this Pulumi API is wrong and it’s impossible to make AWS ECR Registry Policies or am I missing something? I don’t see how Pulumi could know what repository to apply this policy to without a registry/repository ID