When adding pull permissions as stated in the docs, the result is a no-op
Reproduction Steps
const myAsset = new DockerImageAsset(this, "MyAsset", {
directory: path.join(process.cwd(), "docker", "my-asset"),
});
myAsset.repository.addToResourcePolicy(
new PolicyStatement({
principals: [
new AccountPrincipal("123123123"),
new AccountPrincipal("78667867"),
],
actions: [
"ecr:GetDownloadUrlForLayer",
"ecr:BatchCheckLayerAvailability",
"ecr:BatchGetImage",
],
}),
);
What did you expect to happen?
ECR repo's permissions policy gets updated according to the code
What actually happened?
Nothing
Environment
- **CDK CLI Version :1.86.0
- **Framework Version: 1.86.0
- **Node.js Version: v13.8.0
- **OS :MacOS Catalina
- **Language (Version): TypeScript (3.9.6)
This is 🐛 Bug Report
When adding pull permissions as stated in the docs, the result is a no-op
Reproduction Steps
What did you expect to happen?
ECR repo's permissions policy gets updated according to the code
What actually happened?
Nothing
Environment
This is 🐛 Bug Report