Panfactum / stack

The Panfactum Stack
https://panfactum.com
Other
16 stars 5 forks source link

[question]: aws provider error when applying karpenter_node_pools upgrade to edge.24-08-13 #117

Closed wesbragagt closed 3 months ago

wesbragagt commented 3 months ago

Prior Search

What is your question?

Hi, I'm trying to upgrade my infrastructure to use edge.24-08-13 and I've followed the instructions in the changelog to upgrade kube_karpenter and kube_karpenter_node_pools but when I apply with terragrunt I'm getting the following error:

Planning failed. OpenTofu encountered an error while generating this plan.

╷
│ Error: Invalid provider configuration
│
│ Provider "registry.opentofu.org/hashicorp/aws" requires explicit
│ configuration. Add a provider block to the root module and configure the
│ provider's required arguments as described in the provider documentation.
│
╵
╷
│ Error: No valid credential sources found
│
│   with provider["registry.opentofu.org/hashicorp/aws"],
│   on <empty> line 0:
│   (source code not available)
│
│ Please see https://registry.terraform.io/providers/hashicorp/aws
│ for more information about providing credentials.
│
│ Error: failed to refresh cached credentials, no EC2 IMDS role found,
│ operation error ec2imds: GetMetadata, exceeded maximum number of attempts,
│ 3, request send failed, Get
│ "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial
│ tcp 169.254.169.254:80: connect: host is down

What primary components of the stack does this relate to?

terraform

Code of Conduct

fullykubed commented 3 months ago

You do not have the aws provider enabled. Run pf-providers-enable in that module directory and try again.

wesbragagt commented 3 months ago

@fullykubed Thank you, that worked!