unfunco / terraform-aws-oidc-github

Terraform module to configure GitHub Actions as an IAM OIDC identity provider in AWS.
https://registry.terraform.io/modules/unfunco/oidc-github/aws/latest
Apache License 2.0
91 stars 51 forks source link

Changed local.oidc_provider local.oidc_provider_arn #10

Closed jannekeskitalo closed 2 years ago

jannekeskitalo commented 2 years ago

A fix to following error...

Terraform v1.1.0 on linux_arm64

│ 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 commented 2 years ago

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