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

Changed local.oidc_provider local.oidc_provider_arn #10

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

jannekeskitalo
Copy link

A fix to following error...

Terraform v1.1.0
on linux_arm64

  • provider registry.terraform.io/hashicorp/aws v4.8.0

│ Error: Inconsistent conditional result types

│ on .terraform/modules/oidc-github/main.tf line 17, in locals:
│ 17: oidc_provider = var.create_oidc_provider ? aws_iam_openid_connect_provider.github[0] : data.aws_iam_openid_connect_provider.github[0]
│ ├────────────────
│ │ aws_iam_openid_connect_provider.github[0] is a object, known only after apply
│ │ data.aws_iam_openid_connect_provider.github[0] is a object, known only after apply
│ │ var.create_oidc_provider is a bool, known only after apply

│ The true and false result expressions must have consistent types. The given expressions are object and object, respectively.

@unfunco unfunco merged commit 74de1dd into unfunco:main Apr 28, 2022
@unfunco
Copy link
Owner

unfunco commented Apr 28, 2022

Thank you @jannekeskitalo – I've pushed a new release (v0.6.1) which contains this fix.

@unfunco unfunco added the bug 🐛 Something isn't working. label Apr 28, 2022
@jannekeskitalo jannekeskitalo deleted the fix_conditional_type_error branch April 29, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants