Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path varaiable is not set for resource "aws_iam_policy" "cluster_elb_sl_role_creation" #1044

Closed
3 tasks
apothini opened this issue Oct 9, 2020 · 2 comments · Fixed by #1045
Closed
3 tasks

Comments

@apothini
Copy link

apothini commented Oct 9, 2020

I have issues

we are trying to create a policy for a specified path
resource "aws_iam_policy" "cluster_elb_sl_role_creation" {
count = var.manage_cluster_iam_resources && var.create_eks ? 1 : 0
name_prefix = "${var.cluster_name}-elb-sl-role-creation"
description = "Permissions for EKS to create AWSServiceRoleForElasticLoadBalancing service-linked role"
policy = data.aws_iam_policy_document.cluster_elb_sl_role_creation[0].json
path = var.iam_path
}

I'm submitting a...

  • [x ] bug report
  • feature request
  • support request - read the FAQ first!
  • kudos, thank you, warm fuzzy

What is the current behavior?

Failing on creation of policy due to IAM Path restriction

If this is a bug, how to reproduce? Please include a code sample if relevant.

What's the expected behavior?

Policy Not created

Are you able to fix this problem and submit a PR? Link here if you have already.

addded iam_path variable
resource "aws_iam_policy" "cluster_elb_sl_role_creation" {
count = var.manage_cluster_iam_resources && var.create_eks ? 1 : 0
name_prefix = "${var.cluster_name}-elb-sl-role-creation"
description = "Permissions for EKS to create AWSServiceRoleForElasticLoadBalancing service-linked role"
policy = data.aws_iam_policy_document.cluster_elb_sl_role_creation[0].json
path = var.iam_path
}

Environment details

  • Affected module version:
  • OS:
  • Terraform version:

Any other relevant info

@barryib
Copy link
Member

barryib commented Oct 9, 2020

Can you please open a PR for this ?

senthilvv added a commit to senthilvv/terraform-aws-eks that referenced this issue Oct 10, 2020
…aws_iam_policy" "cluster_elb_sl_role_creation"

Fix for terraform-aws-modules#1044 - Path variable is not set for resource "aws_iam_policy" "cluster_elb_sl_role_creation" 

Path variable added to Iam Policy
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants