Skip to content

Erro no Lab terraform-fundamentos #196

@marcelovalada

Description

@marcelovalada

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions