Skip to content
New issue

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

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

Already on GitHub? # to your account

Support GCS as a Terraform Module Source #20987

Closed
SubatomicHero opened this issue Apr 11, 2019 · 3 comments
Closed

Support GCS as a Terraform Module Source #20987

SubatomicHero opened this issue Apr 11, 2019 · 3 comments

Comments

@SubatomicHero
Copy link

Current Terraform Version

Terraform v0.11.13

Use-cases

Terraform currently supports S3 as a Module Source. We only use GCP so want to be able to use GCS as a Module Source

Attempted Solutions

A workaround I am currently using is to use Google Storage Interoperability. This provides AWS keys used for API calls to a S3 like protocol. Doing this I:

  • Created the keys
  • Exported the keys as environment variables
  • Use S3 as a module source e.g.
module "my_module" {
  source = "s3::https://storage.googleapis.com/modules-bucket/awesome-module.tar.gz"
}

Proposal

Ideally this solution should work as such:

  1. source = "gcs::https://storage.googleapis.com/modules-bucket/awesome-module.tar.gz"
  2. Under the hood, Terraform uses a service account to authenticate

References

None

@davewongillies
Copy link
Contributor

I've raised #21254 to support this

@mildwonkey
Copy link
Contributor

#21254 was merged and will be included in the next terraform release 🎉

@ghost
Copy link

ghost commented Jul 25, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jul 25, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants