Whenever I try to create a AWS Elastic Container R...
# aws
m
Whenever I try to create a AWS Elastic Container Registry Policy I get the following error:
Copy code
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 (https://www.pulumi.com/registry/packages/aws/api-docs/ecr/registrypolicy/#create). Whereas the terraform API takes both a repository ID and a policy (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository_policy#argument-reference). 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