Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: AWS SSO for S3 source #323

Open
cageyv opened this issue May 26, 2021 · 2 comments
Open

New feature: AWS SSO for S3 source #323

cageyv opened this issue May 26, 2021 · 2 comments

Comments

@cageyv
Copy link

cageyv commented May 26, 2021

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

@endzyme
Copy link

endzyme commented Mar 6, 2024

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

@crw
Copy link
Contributor

crw commented Mar 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants