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

Setting create_tekton_role to false breaks the module #265

Closed
ankitm123 opened this issue May 27, 2021 · 1 comment
Closed

Setting create_tekton_role to false breaks the module #265

ankitm123 opened this issue May 27, 2021 · 1 comment
Assignees

Comments

@ankitm123
Copy link
Member

Summary

If I set create_tekton_role to false, it does not work.

Steps to reproduce the behavior

in main.tf:

module "eks-jx" {
  source               = "../../"
  vault_user           = var.vault_user
  is_jx2               = false
  install_kuberhealthy = true
  create_nginx         = true
  cluster_version      = "1.20"
  nginx_chart_version  = "3.12.0"
  create_tekton_role   = false
}

Expected behavior

terraform plan/apply succeeds!

Actual behavior

Error: Invalid index

│ on ../../modules/cluster/irsa.tf line 46, in module "iam_assumable_role_tekton_bot":
│ 46: role_policy_arns = concat([aws_iam_policy.tekton-bot[0].arn], var.additional_tekton_role_policy_arns)
│ ├────────────────
│ │ aws_iam_policy.tekton-bot is empty tuple

│ The given key does not identify an element in this collection value.

Terraform version

The output of terraform version is: 0.15.3

COPY OUTPUT HERE

Module version

Operating system

@ankitm123 ankitm123 self-assigned this May 27, 2021
@ankitm123
Copy link
Member Author

fixed in #266

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

No branches or pull requests

1 participant