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
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:
Error:
As a workaround: aws-vault