-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
[0.14-rc1] Error: value has marks, so it cannot be serialized #26922
Comments
Thanks for reporting this, @innovate-invent. I was able to reproduce with this config: variable "access_key_id" {
type = string
sensitive = true
default = "foobar"
}
provider "aws" {
access_key = var.access_key_id
region = "us-east-1"
}
data "aws_regions" "current" {} Running
|
I am using Terraform v0.14.0 (not a RC). I am getting this message when marking a password variables as sensitive:
Does this mean that the "sensitive" parameter on variables isn't working quite yet? |
I ran into something similar -- @KyL0R3Nz0 Take a look at see if that is also your issue. Looks like this will fix it: #27148. Lastly, I would like to know what the best practice is for sensitive variables in modules, once the backport lands. Should the variable be marked as sensitive "all the way down" or just in the root module? |
Same ting happens when using a value marked as
|
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. |
Terraform Version
Terraform Configuration Files
I need more information about this error before I can provide a reproducible test.
Debug Output
Crash Output
Expected Behavior
terraform plan succeeds
Actual Behavior
Steps to Reproduce
Additional Context
I believe this is related to passing the api key to the 'brinkmanlab/galaxy' provider. The debug output does not provide enough information to narrow down the issue. I tried searching the terraform code for the error string but cant find it.
Relevent provider argument:
https://github.com/brinkmanlab/terraform-provider-galaxy/blob/38409dca3a03632f8d505508e85b479540bfa21a/galaxy/provider.go#L33-L40
The text was updated successfully, but these errors were encountered: