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

Use GCP ADC for auth in Terraform Deployer #662

Closed
wants to merge 13 commits into from
Closed

Use GCP ADC for auth in Terraform Deployer #662

wants to merge 13 commits into from

Commits on Feb 11, 2022

  1. use GCP ADC for auth in Terraform Deployer

    Terraform Google Provider allow to pass credentials file content in
    GOOGLE_CREDENTIALS env var.
    
    More about this in the Terraform docs: https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#full-reference
    
    Unfortunately this does not seem to work other GCP Cloud SDK components,
    as I've not been able to find references to that environment variable.
    
    As Terraform provider and components support ADC (Application Defatul
    Credentials) this commit changes how Terraform Deployer setup
    credentials to use ADC instead of Terraform dedicated variable.
    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    eba5f51 View commit details
    Browse the repository at this point in the history
  2. add gcp test package

    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    a726836 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d65cae2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1834d21 View commit details
    Browse the repository at this point in the history
  5. fix linting

    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    73d2317 View commit details
    Browse the repository at this point in the history
  6. leftover bash x options

    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    cfb8674 View commit details
    Browse the repository at this point in the history
  7. move GCP auth to function

    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    e1e3f4d View commit details
    Browse the repository at this point in the history
  8. split main from functions

    With the addition of the `gcp_auth` function the logic flow was split
    into multiple pieces.
    
    This commit introduce a main like area where all logic is handled.
    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    a14abb0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2860bce View commit details
    Browse the repository at this point in the history
  10. add gcp.billing tests

    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    8bc1d37 View commit details
    Browse the repository at this point in the history
  11. format file

    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    d908897 View commit details
    Browse the repository at this point in the history
  12. remove unneded file

    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    e670cce View commit details
    Browse the repository at this point in the history
  13. remove .gitignore

    .gitignore is not currently supported in package-spec, so package
    validation fails.
    
    See elastic/package-spec#273
    endorama committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    cf19a6c View commit details
    Browse the repository at this point in the history