-
Notifications
You must be signed in to change notification settings - Fork 739
Update readme files #399
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
Update readme files #399
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/cc @rjerrems for another pair of eyes
1-org/README.md
Outdated
1. Check if your organization already has a Access Context Manager Policy `gcloud access-context-manager policies list --organization YOUR-ORGANIZATION_ID --format="value(name)"`. | ||
1. Rename `./envs/shared/terraform.example.tfvars` to `./envs/shared/terraform.tfvars` and update the file with values from your environment and bootstrap (you can re-run `terraform output` in the 0-bootstrap directory to find these values). Make sure that `default_region` is set to a valid [BigQuery dataset region](https://cloud.google.com/bigquery/docs/locations). Also if the previous step showed a numeric value, make sure to un-comment the variable `create_access_context_manager_access_policy = false`. | ||
1. Check if your organization already has a Access Context Manager Policy `gcloud access-context-manager policies list --organization YOUR_ORGANIZATION_ID --format="value(name)"`. | ||
1. Rename `./envs/shared/terraform.example.tfvars` to `./envs/shared/terraform.tfvars` and update the file with values from your environment and bootstrap step (you can re-run `terraform output` in the 0-bootstrap directory to find these values, the `terraform_service_account` variable is the bootstrap `terraform_sa_email` output). Make sure that `default_region` is set to a valid [BigQuery dataset region](https://cloud.google.com/bigquery/docs/locations). Also if the previous step showed a numeric value, make sure to un-comment the variable `create_access_context_manager_access_policy = false`. See the shared folder [README.md](./envs/shared/README.md) for additional information on the values in the `terraform.tfvars` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
terraform_service_account
variable is the bootstrapterraform_sa_email
output
Can we standardize this to one, maybe terraform_service_account
throughout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @bharathkkb this change would be to replace terraform_sa_email
with terraform_service_account
in all the code?
This change would touch these files:
- terraform-example-foundation/0-bootstrap/outputs.tf
- terraform-example-foundation/0-bootstrap/README.md
- terraform-example-foundation/0-bootstrap/modules/jenkins-agent/README.md
- terraform-example-foundation/0-bootstrap/modules/jenkins-agent/variables.tf
- terraform-example-foundation/1-org/README.md
- terraform-example-foundation/test/network_test_prepare.sh
- terraform-example-foundation/test/fixtures/bootstrap/outputs.tf
- terraform-example-foundation/test/fixtures/envs/main.tf
- terraform-example-foundation/test/fixtures/envs/variables.tf
- terraform-example-foundation/test/fixtures/networks/main.tf
- terraform-example-foundation/test/fixtures/networks/variables.tf
- terraform-example-foundation/test/fixtures/org/main.tf
- terraform-example-foundation/test/fixtures/org/variables.tf
- terraform-example-foundation/test/fixtures/projects/main.tf
- terraform-example-foundation/test/fixtures/projects/variables.tf
- terraform-example-foundation/test/fixtures/shared/main.tf
- terraform-example-foundation/test/fixtures/shared/variables.tf
- terraform-example-foundation/test/integration/bootstrap/inspec.yml
- terraform-example-foundation/test/integration/bootstrap/controls/gcp_bootstrap.rb
- terraform-example-foundation/test/setup/outputs.tf
OR
Would it be to duplicate the terraform output in the 0-bootstrap
step like it was done in the test setup outputs.tf
file
output "terraform_sa_email" { |
output "terraform_sa_email" {
value = google_service_account.int_test.email
}
output "terraform_service_account" {
value = google_service_account.int_test.email
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniel-cit so anything in test/*
is not user facing and we can change. Then the only user facing change is in the output in 0-bootstrap
and aligning it with the rest of the inputs makes sense. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SG
763949a
to
abc54b1
Compare
@bharathkkb I switched base to main branch and rebased the code |
Update/Fix issue in README files: