-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecr.tf
29 lines (29 loc) · 821 Bytes
/
ecr.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# uncomment for ecr
#resource "aws_ecr_repository" "php7" {
# name = "php7"
#}
#resource "aws_ecr_repository_policy" "php7-policy" {
# repository = "${aws_ecr_repository.php7.name}"
# policy = <<EOF
#{
# "Version": "2008-10-17",
# "Statement": [
# {
# "Sid": "new policy",
# "Effect": "Allow",
# "Principal": {
# "AWS": [
# "arn:aws:iam::${var.AWS_USERID}:role/${aws_iam_role.app-ec2-role.name}",
# "arn:aws:iam::${var.AWS_USERID}:role/elasticbeanstalk-service-role"
# ]
# },
# "Action": [
# "ecr:GetDownloadUrlForLayer",
# "ecr:BatchGetImage",
# "ecr:BatchCheckLayerAvailability"
# ]
# }
# ]
#}
#EOF
#}