We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AmazonEC2ContainerRegistryReadOnly
ECR
1 parent 760479e commit 60d56adCopy full SHA for 60d56ad
main.tf
@@ -122,6 +122,13 @@ resource "aws_iam_role_policy_attachment" "ssm-automation" {
122
}
123
124
125
+# http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.container.console.html
126
+# http://docs.aws.amazon.com/AmazonECR/latest/userguide/ecr_managed_policies.html#AmazonEC2ContainerRegistryReadOnly
127
+resource "aws_iam_role_policy_attachment" "ecr-readonly" {
128
+ role = "${aws_iam_role.ec2.name}"
129
+ policy_arn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"
130
+}
131
+
132
resource "aws_ssm_activation" "ec2" {
133
name = "${module.label.id}"
134
iam_role = "${aws_iam_role.ec2.id}"
0 commit comments