Skip to content

Commit

Permalink
Merge pull request #5036 from marcosdiez/codedeploy_docs
Browse files Browse the repository at this point in the history
codedeploy documentation update
  • Loading branch information
bflad authored Jun 29, 2018
2 parents 208c9eb + 1fa528d commit 61e35d3
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions website/docs/r/codedeploy_deployment_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,9 @@ resource "aws_iam_role" "example" {
EOF
}
resource "aws_iam_role_policy" "example" {
name = "example-policy"
role = "${aws_iam_role.example.id}"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"autoscaling:CompleteLifecycleAction",
"autoscaling:DeleteLifecycleHook",
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeLifecycleHooks",
"autoscaling:PutLifecycleHook",
"autoscaling:RecordLifecycleActionHeartbeat",
"codedeploy:*",
"ec2:DescribeInstances",
"ec2:DescribeInstanceStatus",
"tag:GetTags",
"tag:GetResources",
"sns:Publish"
],
"Resource": "*"
}
]
}
EOF
resource "aws_iam_role_policy_attachment" "AWSCodeDeployRole" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole"
role = "${aws_iam_role.example.name}"
}
resource "aws_codedeploy_app" "example" {
Expand Down

0 comments on commit 61e35d3

Please sign in to comment.