-
Notifications
You must be signed in to change notification settings - Fork 256
Open
Description
Good day to all
I tried using modules source s3 using fresh terraform (0.15+) and aws sso and got an error
This probably requires modifying file get_s3.go and maybe aws sdk go update, it looks outdated
Versions:
- Terraform v0.15.4
- provider registry.terraform.io/hashicorp/aws v3.39.0
- aws-cli 2.2.5
Error:
Error: Failed to download module
│
│ Could not download module "vpn" (networking/vpn.tf:1) source code from "s3::https://s3-eu-central-1.amazonaws.com/terraform-modules/modules.zip": NoCredentialProviders: no valid providers in
│ chain
│ caused by: EnvAccessKeyNotFound: AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY not found in environment
│ SharedCredsLoad: failed to get profile
│ EC2RoleRequestError: no EC2 instance role found
│ caused by: RequestError: send request failed
│ caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: no route to host
As a workaround: aws-vault
zmingxie, lorengordon, SamuelBourgault, clukey, lnattrass and 7 more
Metadata
Metadata
Assignees
Labels
No labels