Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

No valid credential sources found for AWS Provider.

Ao executar o plan eu recebo o seguinte erro:

Running plan in the remote backend. Output will stream here. Pressing Ctrl-C
will stop streaming the logs, but will not stop the plan running remotely.

Preparing the remote plan...

To view this run in a browser, visit:
https://app.terraform.io/app/esronlabs/aws-esronlabs/runs/run-WrWP7Ym6SkQzE8Yk

Waiting for the plan to start...

Terraform v0.12.16
Configuring remote state backend...
Initializing Terraform configuration...
2019/12/07 22:32:04 [DEBUG] Using modified User-Agent: Terraform/0.12.16 TFC/6e3628b102
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.


Error: No valid credential sources found for AWS Provider.
        Please see https://terraform.io/docs/providers/aws/index.html for more information on
        providing credentials for the AWS Provider

  on main.tf line 1, in provider "aws":
   1: provider "aws" {



Error: No valid credential sources found for AWS Provider.
        Please see https://terraform.io/docs/providers/aws/index.html for more information on
        providing credentials for the AWS Provider

  on main.tf line 6, in provider "aws":
   6: provider "aws" {


Já procurei bastante na documentação mas ainda não encontrei como configurar essas credenciais.

2 respostas
solução!

Olá Esron, tudo bem? Peço desculpas pela demora em ti responder! Esse erro acontece porque precisamos definir as credencias de acesso a AWS no Terraform Cloud, porque ele é quem faz a executação das instruções, então ele precisa ter o acesso a AWS, para isso precisamos definir a AWS_ACCESS_KEY_ID e a AWS_SECRET_ACCESS_KEY nas variáveis de ambiente do Terraform Cloud. Tenta fazer isso e executar o comando novamente Esron.

Espero ter ajudado!

Obrigado Jonilson.

Devo ter passado desapercebido por essa parte das aulas.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software