Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 9a417ea

Browse files
authored
Use role instead of roles (deprecated)
1 parent 1bf32b3 commit 9a417ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iam-role/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ EOF
9797
resource "aws_iam_instance_profile" "default_ecs" {
9898
name = "ecs-instance-profile-${var.name}-${var.environment}"
9999
path = "/"
100-
roles = ["${aws_iam_role.default_ecs_role.name}"]
100+
role = "${aws_iam_role.default_ecs_role.name}"
101101
}
102102

103103
output "default_ecs_role_id" {

0 commit comments

Comments
 (0)