Error failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds GetMet
I get
Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, http response error StatusCode: 404, request to EC2 IMDS failed
running coder templates push
My providers are terraform { required_providers { coder = { source = "coder/coder" version = "0.4.3" } docker = { source = "kreuzwerker/docker" version = "~> 2.22.0" } aws = { source = "hashicorp/aws" version = ">= 4.3.0" } }}
running terraform plan
works2 Replies
It sounds like
coder server
may not be configured with the appropriate AWS credentials, have you taken a look at https://coder.com/docs/coder-oss/latest/templates/authentication ?Provider Authentication - Coder OSS main docs
Learn how to authenticate the provisioner
I also found this issue on the aws provider tracker, you may find some hints there: https://github.com/hashicorp/terraform-provider-aws/issues/23209
GitHub
`Error: no EC2 IMDS role found, operation error ec2imds: GetMetadat...
On AWS provider version 4.0.0 I'm getting the following error: Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found. │ │ Please see ...