Skip to content

Commit

Permalink
Documentation fix for aws_iam_role_policy_attachment-fix (#30150)
Browse files Browse the repository at this point in the history
Contains changes for the issue : #29987
  • Loading branch information
btanand authored Apr 11, 2023
1 parent 46365da commit 89773ee
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions website/docs/r/iam_role_policy_attachment.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ Attaches a Managed IAM Policy to an IAM role

```terraform
data "aws_iam_policy_document" "assume_role" {
effect = "Allow"
statement {
effect = "Allow"
principals {
type = "Service"
identifiers = ["ec2.amazonaws.com"]
}
principals {
type = "Service"
identifiers = ["ec2.amazonaws.com"]
}
actions = ["sts:AssumeRole"]
actions = ["sts:AssumeRole"]
}
}
resource "aws_iam_role" "role" {
Expand Down

0 comments on commit 89773ee

Please sign in to comment.