Resource 'aws_iam_role_policy.example_policy' does not have attribute 'name' #6144
Labels
bug
Addresses a defect in current functionality.
service/iam
Issues and PRs that pertain to the iam service.
Milestone
Community Note
Terraform Version
Terraform v0.11.8
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
$ terraform state show aws_iam_role_policy.example_role_policy
id = example-role:terraform-2018xxxxxxxxxxxxxxxxxxxxxxxxx
name = terraform-2018xxxxxxxxxxxxxxxxxxxxxxxxx
policy = {
"Id": "Policy1539344357144",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1539344320966",
"Action": "s3:",
"Effect": "Allow",
"Resource": "arn:aws:s3:::terraform-2018xxxxxxxxxxxxxxxxxxxxxxxxx/"
}
]
}
role = example-role
Actual Behavior
$ terraform state show aws_iam_role_policy.example_role_policy
id = example-role:terraform-2018xxxxxxxxxxxxxxxxxxxxxxxxx
policy = {
"Id": "Policy1539344357144",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1539344320966",
"Action": "s3:",
"Effect": "Allow",
"Resource": "arn:aws:s3:::terraform-2018xxxxxxxxxxxxxxxxxxxxxxxxx/"
}
]
}
role = example-role
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: