Skip to content

New feature: AWS SSO for S3 source #323

@cageyv

Description

@cageyv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions