2017-10-18 3 views
0
terraform plan -var-file=uservar.tfvars 

[0m[1mRefreshing Terraform state in-memory prior to plan...[0m 
The refreshed state will be used to calculate this plan, but will not be 
persisted to local or remote state storage. 
[0m 
[31mError refreshing state: 1 error(s) occurred: 

* provider.aws: InvalidClientTokenId: The security token included in the request is invalid. 
    status code: 403, request id: 39888d7e-b3f1-11e7-b6d2-9b6dc0727868[0m[0m 
Build step 'Execute shell' marked build as failure 
Finished: FAILURE 
+1

질문을 올바르게 형식화하는 데 몇 분을 소비하십시오. 콘솔 색상 코드는 여기에서 작동하지 않습니다. 당신의 오류에 관해서는 - 당신의 로그가 아마도 젠킨스에서 오는 것처럼 보입니다 - 젠킨스 프로세스가 당신이 말하는 키 파일에 접근 할 수 있습니까? –

+0

terraform 계획 -var-file = uservar.tfvars [0m [1m 미리 계획중인 메모리에 테라모 쓰 상태를 계획 중 ... [0m ] 새로 고침 된 상태는이 계획을 계산하는 데 사용되지만 은 로컬 또는 원격 상태 저장. [0m [31m 오류 새로 고침 상태 : 1 오류가 발생했습니다. –

+0

provider.aws : InvalidClientTokenId : 요청에 포함 된 보안 토큰이 유효하지 않습니다. \t 상태 코드 : 403, 요청 ID : 0233adf0-b3f5-11e7-b07e-91b6232311b5 [0m은 [0m 빌드 단계 '쉘을 실행은'완료 실패 으로 구축 표시 : 실패 –

답변

0

당신은 terraform init 먼저 실행해야 할 파일을 이동 terraform Command: init

를 두 번째 오류 The security token included in the request is invalid.의 경우 aws configuration을 통해 AWS 보안 토큰을 올바르게 설정했는지 확인하십시오.