You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we noticed a bug in our repository that if you alias your stripe provider like this:
provider "stripe" {
alias = "stripe_account_1"
api_key = var.stripe_account_1_api_key
}
it will not read out the api_key property correctly. It will therefore ask you for it in the manual prompt and fail in CI/CD. With the env var STRIPE_API_KEY it works.
The text was updated successfully, but these errors were encountered:
I think the issue is in the Terraform state. Looks like you created resources with the provider without the alias. Could you please try to keep the stripe provider without the alias as it is and create a new one with the new alias and update resources to use that alias provider?
Ahh that makes total sense. Looking at our git it is really what happened. Thing is we didn't really need the alias in the first place, but that sounds like a logical thing. Thank you for the help :)
Hi, we noticed a bug in our repository that if you alias your stripe provider like this:
it will not read out the
api_key
property correctly. It will therefore ask you for it in the manual prompt and fail in CI/CD. With the env varSTRIPE_API_KEY
it works.The text was updated successfully, but these errors were encountered: