Skip to content

Commit

Permalink
Add AWSElasticBeanstalkMulticontainerDocker role for ec2 instance pro…
Browse files Browse the repository at this point in the history
…file (#85)
  • Loading branch information
aj-jaswanth-ee authored and aknysh committed May 15, 2019
1 parent a2754ef commit 01d4052
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ data "aws_iam_policy_document" "ec2" {
}
}

resource "aws_iam_role_policy_attachment" "elastic_beanstalk_multi_container_docker" {
role = "${aws_iam_role.ec2.name}"
policy_arn = "arn:aws:iam::aws:policy/AWSElasticBeanstalkMulticontainerDocker"
}

resource "aws_iam_role" "ec2" {
name = "${module.label.id}-ec2"
assume_role_policy = "${data.aws_iam_policy_document.ec2.json}"
Expand Down

0 comments on commit 01d4052

Please sign in to comment.