Boa noite pessoal. Estou com dificuldade de seguir com o lab "terraform-fundamentos".
Criei o main.tf conforme indicado no desafio. Consigo iniciar ele com o terraform init mas da erro nos demais passos como terraform plan
e terraform apply -auto-approve.
Erro:
localstack:~/terraform-projeto$ terraform plan
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: Retrieving AWS account details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, exceeded maximum number of attempts, 9, https response error StatusCode: 0, RequestID: , request send failed, Post "http://localhost:4566/": dial tcp [::1]:4566: connect: connection refused
│
│ with provider["registry.terraform.io/hashicorp/aws"],
│ on main.tf line 10, in provider "aws":
│ 10: provider "aws" {
│
│
as variáveis de ambiente são:
localstack:~/terraform-projeto$ env | grep AWS
AWS_DEFAULT_REGION=us-east-1
AWS_SECRET_ACCESS_KEY=test
AWS_ACCESS_KEY_ID=test
AWS_ENDPOINT_URL=http://localhost:4566
Boa noite pessoal. Estou com dificuldade de seguir com o lab "terraform-fundamentos".
Criei o main.tf conforme indicado no desafio. Consigo iniciar ele com o terraform init mas da erro nos demais passos como terraform plan
e terraform apply -auto-approve.
Erro:
localstack:~/terraform-projeto$ terraform plan
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: Retrieving AWS account details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, exceeded maximum number of attempts, 9, https response error StatusCode: 0, RequestID: , request send failed, Post "http://localhost:4566/": dial tcp [::1]:4566: connect: connection refused
│
│ with provider["registry.terraform.io/hashicorp/aws"],
│ on main.tf line 10, in provider "aws":
│ 10: provider "aws" {
│
│
as variáveis de ambiente são:
localstack:~/terraform-projeto$ env | grep AWS
AWS_DEFAULT_REGION=us-east-1
AWS_SECRET_ACCESS_KEY=test
AWS_ACCESS_KEY_ID=test
AWS_ENDPOINT_URL=http://localhost:4566