Skip to content

Commit

Permalink
changed instance profile name variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dsreehas committed Apr 29, 2024
1 parent 508d77b commit 06ac780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/instance-profile/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module "iam_role" {
}

resource "aws_iam_instance_profile" "iam_instance_profile" {
name = "my-instance-profile"
name = "${var.role_name}-instance-profile"
role = module.iam_role.iam_role_name

}
2 changes: 1 addition & 1 deletion examples/multiple-managed-policies/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "iam_role_with_managed_policies" {
source = "/Users/user/Documents/GitHub/terraform-eks-iam-role/"
source = "github.com/dsreehas/terraform-iam-role"
role_name = var.role_name
assume_role_policy = file("./policies/assume_role_policy.json")
managed_policy_arns = var.managed_policy_arns
Expand Down

0 comments on commit 06ac780

Please sign in to comment.