File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,13 @@ module "eks" {
196
196
}
197
197
}
198
198
199
+ # OIDC Identity provider
200
+ cluster_identity_providers = {
201
+ sts = {
202
+ client_id = " sts.amazonaws.com"
203
+ }
204
+ }
205
+
199
206
# aws-auth configmap
200
207
manage_aws_auth_configmap = true
201
208
Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ resource "aws_eks_identity_provider_config" "this" {
369
369
groups_claim = lookup (each. value , " groups_claim" , null )
370
370
groups_prefix = lookup (each. value , " groups_prefix" , null )
371
371
identity_provider_config_name = try (each. value . identity_provider_config_name , each. key )
372
- issuer_url = each. value . issuer_url
372
+ issuer_url = try ( each. value . issuer_url , aws_eks_cluster . this [ 0 ] . identity [ 0 ] . oidc [ 0 ] . issuer )
373
373
required_claims = lookup (each. value , " required_claims" , null )
374
374
username_claim = lookup (each. value , " username_claim" , null )
375
375
username_prefix = lookup (each. value , " username_prefix" , null )
You can’t perform that action at this time.
0 commit comments