I am new to to this course and have some doubt how to use the lab.
Can I have someone to whom i can speak.
my number is 001-201-2406902
I am getting following error on my first lab
│ Error: Error launching source instance: AuthFailure: AWS was not able to validate the provided access credentials
│ status code: 401, request id: a727293b-4be0-45a7-b26c-3588083e0f16
│
│ with aws_instance.test-servers,
│ on main.tf line 13, in resource “aws_instance” “test-servers”:
│ 13: resource “aws_instance” “test-servers” {
│
Hello @sanjeevj
You don’t need to speak with anyone. We are here to help you.
I will check the issue and will update you back.
Regards,
KodeKloud Support
It is almost 4 days and no one responed to the query I have put in.
I am really disappointed.
Hi @sanjeevj ,
Sorry for the late response. I checked the first lab of terraform course and I haven’t seen any questions related to the AWS.
Regards,
KodeKloud Support
Im getting the same error in the Terragrunt playground.
Im just trying to terraform apply the code thats on there which creates aws instance.
root in ~/code/terraform-projects via 💠 default on ☁️ (us-east-1)
❯ terraform apply
aws_instance.test-servers: Creating...
╷
│ Warning: AWS account ID not found for provider
│
│ with provider["registry.terraform.io/hashicorp/aws"],
│ on provider.tf line 1, in provider "aws":
│ 1: provider "aws" {
│
│ See https://registry.terraform.io/providers/hashicorp/aws/latest/docs#skip_requesting_account_id for implications.
╵
╷
│ Error: creating EC2 Instance: AuthFailure: AWS was not able to validate the provided access credentials
│ status code: 401, request id: ce43d7dc-3fc4-4143-ba22-421f36b30a7f
│
│ with aws_instance.test-servers,
│ on main.tf line 13, in resource "aws_instance" "test-servers":
│ 13: resource "aws_instance" "test-servers" {
│
The endpoint seem to be configured but the aws instance creation fails
❯ aws ec2 describe-instances --endpoint http://aws:4566
{
"Reservations": []
}