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

fix : Removed EC2 type from exception condition so policy attachment for access entry can be created #3280

Closed

Conversation

vibhamsharma
Copy link
Contributor

@vibhamsharma vibhamsharma commented Jan 20, 2025

…y can be done for EC2 type for creating access entry for Node role.

While Creating Access entry for Self managed node role, we were getting below error as it seems EC2 type is included in exception for policy attachment. Once I removed EC2 from exception condition, it started picking up Policy attachment and Access Entry got created.

│ Error: Unsupported attribute

│ on .terraform/modules/eks/main.tf line 289, in resource "aws_eks_access_policy_association" "this":
│ 289: policy_arn = each.value.association_policy_arn
│ ├────────────────
│ │ each.value is object with 3 attributes

│ This object does not have an attribute named "association_policy_arn".

Description

Motivation and Context

Breaking Changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

…y can be done for EC2 type for creating access entry for Node role.

While Creating Access entry for Self managed node role, we were getting below error as it seems EC2 type is included in exception for policy attachment. Once I removed EC2 from exception condition, it started picking up Policy attachment and Access Entry got created.

│ Error: Unsupported attribute
│ 
│   on .terraform/modules/eks/main.tf line 289, in resource "aws_eks_access_policy_association" "this":
│  289:   policy_arn    = each.value.association_policy_arn
│     ├────────────────
│     │ each.value is object with 3 attributes
│ 
│ This object does not have an attribute named "association_policy_arn".
Copy link
Contributor Author

@vibhamsharma vibhamsharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix : Removed EC2 type from exception condition so policy attachment for access entry can be created.

@vibhamsharma vibhamsharma changed the title Removed EC2 type from exception condition so policy attachment for access entry can be created fix: Removed EC2 type from exception condition so policy attachment for access entry can be created Jan 20, 2025
@vibhamsharma vibhamsharma changed the title fix: Removed EC2 type from exception condition so policy attachment for access entry can be created fix : Removed EC2 type from exception condition so policy attachment for access entry can be created Jan 20, 2025
@vibhamsharma vibhamsharma marked this pull request as draft January 20, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant