Skip to content

Commit 231dc8c

Browse files
JimiHFordantonbabenko
authored andcommitted
Fix deprecation warning (#40)
Warnings: * aws_iam_instance_profile.s3_readonly-allow_associateaddress: "roles": [DEPRECATED] Use `role` instead. Only a single role can be passed to an IAM Instance Profile
1 parent dafa1e6 commit 231dc8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: samples/iam_allow_associateaddress.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This is just a sample definition of IAM instance profile which is allowed to read-only from S3, and associate ElasticIP addresses.
22
resource "aws_iam_instance_profile" "s3_readonly-allow_associateaddress" {
33
name = "s3_readonly-allow_associateaddress"
4-
roles = ["${aws_iam_role.s3_readonly-allow_associateaddress.name}"]
4+
role = "${aws_iam_role.s3_readonly-allow_associateaddress.name}"
55
}
66

77
resource "aws_iam_role" "s3_readonly-allow_associateaddress" {

0 commit comments

Comments
 (0)