Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- interconnect
- direnv
- vm
- VAGRANT
- AWS
- Python
- Clean Code
- CentOS
- cloud function
- pub/sub
- 자격증
- github
- cloud
- MIG
- 후기
- Uptime Check
- IAM
- gcp
- 보안 규칙
- cloud armor
- Java
- 우테캠
- devops
- terraform
- cicd
- Terraform Cloud
- kubernetes
- Google Cloud Platform
- docker
- vpc peering
Archives
- Today
- Total
EMD Blog
tfe_variable Resource value Type 관련 본문
반응형
tfe_variable Resource를 사용해서 Terraform Workspace의 변수를 관리 할 수 있음. 하지만 이 variable Resource의 value로는 String만 지정이 가능함. 만약에 Map, List 등을 지정 할 경우 아래 에러가 발생
tfe_variable Inappropriate value for attribute "value": string required.
관련 이슈는 아래에서 확인 가능하며 해결방법도 나와있음.(jsonencode )
https://github.com/hashicorp/terraform-provider-tfe/issues/188
tfe_variable: list(string) not supported · Issue #188 · hashicorp/terraform-provider-tfe
It seems like tfe_variable does not support values where the type is list(string) on tfe_workspace_vars.tf line 24, in resource "tfe_variable" "subnet_ids": 24: value = [for sub...
github.com
위에서 jsonencode한 변수는 실제 사용전에 로컬 변수로 선언 후 jsondecoe 후 사용해주면 된다. 관련 내용은 아래 내용 참고.
반응형
'IaC > Terraform' 카테고리의 다른 글
Terraform Backend로 GCS 지정 시 lock 설정 (0) | 2022.09.04 |
---|---|
Terraform tfe Provider OS 종속 이슈 (0) | 2022.09.04 |
tfe Provider 사용 시 기본 “owners” 팀 관리 이슈 (0) | 2022.09.04 |
tfe Provider로 OAuth Client 구성 시 Provider 수동 연결 이슈 (0) | 2022.09.04 |
SQL Server 생성시 tier에 custom type 설정 (0) | 2022.09.03 |