Skip to content

Conversation

mauro-cit
Copy link
Contributor

This PR is adding a script that will make sure to validate wheter the environment that will run the terraform foundation steps are configured with the expected requirements. These requirements are:

  • Checking if the machine have installed: Git, Terraform and gcloud sdk
  • Check if the version of git and gcloud sdk are above a minimum expected
  • Check if Terraform version is exact the one expected
  • Check if the user have runned gcloud auth login and gcloud auth application-default login locally with a valid account
  • Check if the end user credential that will be used to run the terraform scripts contains the required Organization and Billing account level roles
  • Check if the bootstrap terraform.tfvars is found and have the required values correctly filled

@mauro-cit mauro-cit marked this pull request as ready for review August 3, 2022 15:03
@mauro-cit mauro-cit requested review from a team, rjerrems and bharathkkb as code owners August 3, 2022 15:03
Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @mauro-cit

@mauro-cit mauro-cit self-assigned this Aug 9, 2022
@mauro-cit mauro-cit requested a review from bharathkkb August 9, 2022 23:04
@mauro-cit mauro-cit requested a review from bharathkkb August 24, 2022 11:24
@bharathkkb bharathkkb merged commit 84bbd25 into terraform-google-modules:master Aug 26, 2022
@bharathkkb
Copy link
Member

@mauro-cit It will be good to follow up with updating docs to let users know about the script.

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

Successfully merging this pull request may close these issues.

2 participants