Estou obtendo o seguinte erro de autenticação ao tentar fazer o deploy na aws:
Enter a value: yes
aws_instance.dev[2]: Creating...
aws_instance.dev[1]: Creating...
aws_instance.dev[0]: Creating...
Error: Error launching source instance: AuthFailure: AWS was not able to validate the provided access credentials
status code: 401, request id: cf83d6dd-e7b1-4b03-b2ba-9e47e515c031
on main.tf line 6, in resource "aws_instance" "dev":
6: resource "aws_instance" "dev" {
Error: Error launching source instance: AuthFailure: AWS was not able to validate the provided access credentials
status code: 401, request id: b0cae6e5-8ca2-480a-bcd6-c60ebb5cfa11
on main.tf line 6, in resource "aws_instance" "dev":
6: resource "aws_instance" "dev" {
Error: Error launching source instance: AuthFailure: AWS was not able to validate the provided access credentials
status code: 401, request id: 0825a27d-91a5-45c9-bd48-2183cf8e4f43
on main.tf line 6, in resource "aws_instance" "dev":
6: resource "aws_instance" "dev" {
Arquivo terraform:
provider "aws" {
version = "~> 2.0"
region = "us-east-1"
}
resource "aws_instance" "dev" {
count = 3
ami = "ami-08bc77a2c7eb2b1da"
instance_type = "t2.micro"
key_name = "terraform-aws"
tags = {
Name = "dev${count.index}"
}
}
Fiz toda a configuração no aws cli. Queria uma ajuda, por gentileza.
Obrigado