packer-examples icon indicating copy to clipboard operation
packer-examples copied to clipboard

Error: NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors

Open Naveen280678 opened this issue 4 years ago • 0 comments

Hi I am getting a below error message when tried to create a packer for nginx on windows 10.

Error: NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors

Can you help me to resolve. Thanks kalyan

{ "variables": { "aws_access_key": "", "aws_secret_key": "" }, "builders": [ { "type": "amazon-ebs", "access_key": "{{ user aws_access_key }}", "secret_key": "{{ user aws_secret_key }}", "region": "us-east-2", "source_ami": "ami-00399ec92321828f5", "instance_type": "t2.micro", "ssh_username": "ubuntu", "ami_name": "kalyan-packer1 {{timestamp}}" } ], "provisioners": [ { "type": "shell", "inline": [ "sudo apt-get update", "sudo apt-get install nginx -y" ] } ] }

image

Naveen280678 avatar Aug 04 '21 19:08 Naveen280678