Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Naveen280678 opened this issue Aug 4, 2021 · 0 comments

Comments

@Naveen280678
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant