Skip to content

allow for predefined irsa policies #356

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

allow for predefined irsa policies #356

wants to merge 6 commits into from

Conversation

miguelhar
Copy link
Collaborator

@miguelhar miguelhar commented Apr 15, 2025

variable "irsa_policies" {
  description = "Mappings for custom IRSA configurations."
  type = list(object({
    name                = string
    namespace           = string
    serviceaccount_name = string
    policy              = optional(string) #json
    pod_identity        = optional(bool, false)
  }))

If you omit policy it will try to find it in ./modules/irsa/apps-policies/ which allows for predefined policies as well the case where one wants to overwrite the policy or just not use a predefined.

when pod_identity = true it will create the aws_eks_pod_identity_association and a different trust policy for the role

roles:

./tf.sh cluster output_json irsa | jq .irsa.value.roles

@@ -100,6 +100,15 @@ variable "use_fips_endpoint" {
default = false
}

variable "region" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can use data "aws_region" "current" {} instead, no need to pass it through

]
}
]
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

add new line

]
}
]
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

add new line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant