Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlga committed Dec 3, 2023
1 parent b21a3a3 commit 8471d95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ resource "aws_iam_policy" "ec2_policy" {
})
}

resource "aws_iam_instance_profile" "ec2_profile" {
name = "ec2_profile"
resource "aws_iam_instance_profile" "my_ec2_profile" {
name = "my_ec2_profile"
role = aws_iam_role.ec2_role.name
}

Expand Down
2 changes: 1 addition & 1 deletion modules/iam/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "ec2_profile_name" {
description = "The name of the IAM instance profile for EC2 instances"
value = aws_iam_instance_profile.ec2_profile.name
value = aws_iam_instance_profile.my_ec2_profile.name
}

0 comments on commit 8471d95

Please sign in to comment.