Skip to content

Commit 4c0c4c4

Browse files
authored
change conditional for irsa.tf (#783)
1 parent 2a78825 commit 4c0c4c4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1818
- Add `default_cooldown` and `health_check_grace_period` options to workers ASG (by @ArieLevs)
1919
- Fix support for ASG max instance lifetime for workers (by @barryib)
2020
- Add support for envelope encryption of Secrets (by @babilen5)
21+
- Fix issue with terraform plan phase when IRSA was enabled and create_eks switches to false (by @daroga0002)
2122
- **Breaking:** Added support for EKS 1.15 (by @sc250024)
2223

2324
# History

irsa.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# https://github.com/terraform-providers/terraform-provider-aws/issues/10104
99

1010
resource "aws_iam_openid_connect_provider" "oidc_provider" {
11-
count = var.enable_irsa ? 1 : 0
11+
count = var.enable_irsa && var.create_eks ? 1 : 0
1212
client_id_list = ["sts.amazonaws.com"]
1313
thumbprint_list = [var.eks_oidc_root_ca_thumbprint]
1414
url = flatten(concat(aws_eks_cluster.this[*].identity[*].oidc.0.issuer, [""]))[0]

0 commit comments

Comments
 (0)