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

Facing "data.tls_certificate.this[0].certificates is empty list of object" in terraform plan command #2173

Closed
codal-jayesh opened this issue Jul 22, 2022 · 6 comments · Fixed by #2174

Comments

@codal-jayesh
Copy link


│ Error: Invalid index

│ on .terraform/modules/eks/main.tf line 211, in resource "aws_iam_openid_connect_provider" "oidc_provider":
│ 211: thumbprint_list = concat([data.tls_certificate.this[0].certificates[0].sha1_fingerprint], var.custom_oidc_thumbprints)
│ ├────────────────
│ │ data.tls_certificate.this[0].certificates is empty list of object

│ The given key does not identify an element in this collection value: the collection has no elements.

Above error is coming again and again. Previous day it was working but today it is continuously throwing above error.

Please reply if anyone has faced above error or knowing solution.

Thanks,
Jayesh

@schmidp
Copy link

schmidp commented Jul 22, 2022

I am facing the same issue.

@stimmerman
Copy link

Same for me, a solution has been posted here: #2170 (comment)

@FernandoMiguel
Copy link
Contributor

temp fix #2170 (comment)

@codal-jayesh
Copy link
Author

Thank you all of you guys,

Now it has been resolved from #2170.

@antonbabenko
Copy link
Member

This issue has been resolved in version 18.26.6 🎉

@github-actions
Copy link

github-actions bot commented Nov 9, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants