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

Feature/validate requirements script #765

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

scripts/validate-requirements.sh Show resolved Hide resolved
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Show resolved Hide resolved
scripts/validate-requirements.sh Show resolved Hide resolved
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Show resolved Hide resolved
@mauro-cit mauro-cit self-assigned this Aug 9, 2022
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Show resolved Hide resolved
scripts/validate-requirements.sh Outdated Show resolved Hide resolved
scripts/validate-requirements.sh Show resolved Hide resolved
@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.

None yet

2 participants