You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a cluster, provisioning IAM roles using the CreateRoleProvider, it would be great to be able to provide a trust policy for the cluster's OIDC provider.
Alternatively, the roles could be created in a separate task but how could the cluster's OIDC provider be accessed to build the trust policy?
Use Case
For workloads to be deployed to the clusters, there will be service accounts that will be annotated with IAM roles that specify the permissions for those workloads. Those roles could be created as part of the cluster's blueprint, with a trust policy for the cluster's OIDC provider.
Proposed Solution
No response
Other Information
No response
Acknowledgements
I may be able to implement this feature request
CDK version used
2.146.0
EKS Blueprints Version
1.15.1
Node.js Version
21.6.1
Environment details (OS name and version, etc.)
MacOS 14.5
The text was updated successfully, but these errors were encountered:
@vpopiolrcclassumedBy parameter to the constructor defines the trust policy for roles. You can use CompositePrincipal to add more than a single principal. According to the CDK documentation, you can further tweak the trust policy by accessing the assumeRolePolicy post creation, this will require creating a subclass for the CreateRoleProvider and overriding the provider method.
For IRSA or Pod identity you can use EKS Pod Identity add-on and use roles without the OIDC trust relationship with pods.
Thanks so much, @shapirov103 . I ended up using an extended CreateRoleProvider and inside the provider, I'm using the eks.CfnPodIdentityAssociation construct to associate the role with a service account
Thanks so much, @shapirov103 . I ended up using an extended CreateRoleProvider and inside the provider, I'm using the eks.CfnPodIdentityAssociation construct to associate the role with a service account
@vpopiolrccl Hey! Do you happen to have an example of this extended CreateRoleProvider with eks.CfnPodIdentityAssociation that you are using? I have a similar issue.
This issue has been automatically marked as stale because it has been open 60 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
Describe the feature
When creating a cluster, provisioning IAM roles using the CreateRoleProvider, it would be great to be able to provide a trust policy for the cluster's OIDC provider.
Alternatively, the roles could be created in a separate task but how could the cluster's OIDC provider be accessed to build the trust policy?
Use Case
For workloads to be deployed to the clusters, there will be service accounts that will be annotated with IAM roles that specify the permissions for those workloads. Those roles could be created as part of the cluster's blueprint, with a trust policy for the cluster's OIDC provider.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.146.0
EKS Blueprints Version
1.15.1
Node.js Version
21.6.1
Environment details (OS name and version, etc.)
MacOS 14.5
The text was updated successfully, but these errors were encountered: