반응형
명령줄 인수가 너무 많습니다. 테라폼 계획
나는 테라폼이 처음이다. 나는 애저 파이프라인을 통해 간단한 스토리지 계정을 생성하려고 하지만 파이프라인을 실행할 때 "Too much 명령줄 인수"라는 오류가 발생한다. 나는 충격을 받았고 내가 무엇을 잘못하고 있는지 모른다. 누가 도와줄 수 있나요.
이것은 파이프라인에서 내 계획 스크립트이다:
- script:
terraform plan -out = plan.tfplan
displayName: Terraform plan
workingDirectory: $(System.DefaultWorkingDirectory)/terraform
env:
ARM_CLIENT_ID: $(application_id)
ARM_CLIENT_SECRET: $(client_secret)
ARM_TENANT_ID: $(tenant_id)
ARM_SUBSCRIPTION_ID: $(subscription_id)
TF_VAR_client_id: $(application_id)
TF_VAR_tenant_id: $(tenant_id)
TF_VAR_subscription_id: $(subscription_id)
TF_VAR_client_secret: $(client_secret
오류가 발생했습니다:
Starting: Terraform plan
Generating script.
Script contents:
terraform plan -out = plan.tfplan
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/3d07140f-ec17-4bfc-9384-a1170fae1248.sh
╷
│ Error: Too many command line arguments
│
│ To specify a working directory for the plan, use the global -chdir flag.
╵
For more help on using this command, run:
terraform plan -help
##[error]Bash exited with code '1'.
Finishing: Terraform plan
유효하지 않은 추가 공간이 있습니다:
terraform plan -out = plan.tfplan
다음과 같습니다:
terraform plan -out=plan.tfplan
내 돈 2센트.
다음 명령을 실행했습니다
terraform plan -out main.tfplan -var-file=secrets.tfvars
다음과 같은 오류가 발생했습니다.
╷
│ Error: Too many command line arguments
│
│ To specify a working directory for the plan, use the global -chdir flag.
╵
For more help on using this command, run:
terraform plan -help
var-file 전에 하나(-var-file) 대신 하이픈(--var-file)이 필요합니다
terraform plan -out main.tfplan --var-file=secrets.tfvars
도움이 좀 부족한 것 같아요. 다음과 같이 작동합니다:
terraform plan -var-file secrets.tfvars
OR
terraform plan --var-file=secrets.tfvars
아웃, 스테이트 등과 같은 다른 옵션도 마찬가지입니다.
아래와 같이 단일 견적서에 동봉해 주십시오
terraform plan '-var-file=variable.tfvars' '-out=tfplan'
반응형
'개발하자' 카테고리의 다른 글
사용자 이름과 비밀번호만 허용하지 않는 구글의 정책 업데이트 후 파이썬을 사용하여 이메일을 보내는 방법은 무엇입니까? (0) | 2023.08.29 |
---|---|
파이썬의 다른 열 값을 기준으로 한 열에 대한 값의 평균을 구하는 방법(판다, 주피터) (0) | 2023.08.29 |
파이썬에서 문자열의 문자열 대체 필드를 구문 분석하는 방법? (2) | 2023.08.28 |
Python에서 두 개의 목록에서 목록 만들기(네스팅) (0) | 2023.08.27 |
파이썬에서 중첩 목록을 만드는 방법은 무엇인가요? (0) | 2023.08.26 |