hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.
Mozilla Public License 2.0
1.62k stars 227 forks source link

New feature: AWS SSO for S3 source #323

Open cageyv opened 3 years ago

cageyv commented 3 years ago

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:

 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

endzyme commented 4 months ago

Any way to get motion on this? It's been a few years.

crw commented 4 months ago

Linking to #467 just in case this can be examined at the same time that gets handled.