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

About config_workbook —— Using an Excel with a config schema #6

Open
qifawu opened this issue Jan 27, 2024 · 0 comments
Open

About config_workbook —— Using an Excel with a config schema #6

qifawu opened this issue Jan 27, 2024 · 0 comments

Comments

@qifawu
Copy link

qifawu commented Jan 27, 2024

Hi Ariel,

I tried to follow the example —— Using an Excel with a config schema.
`data "config_workbook" "excel" {
excel = "filename.xlsx"
worksheet = "Sheet1"
schema = file("schema.json")
}

output test {
value = jsondecode(data.config_workbook.excel.json)
}`

But it seemed the config-schema didn't work and I got "attr" and "tags" in the output:
test = { "vpc" = [ { "attr1" = "my_vpc" "attr2" = "1" "attr3" = "10.0.0.0/16" "tags" = {} }, { "attr1" = "2nd_vpc" "attr2" = "1" "attr3" = "20.0.0.0/16" "tags" = {} }, ] }

My terraform version is 1.6.6 and the config version is 0.2.8. If I don't use the config-schema, is there any way to remove the "tags" field? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant