Closed fmichaelobrien closed 2 years ago
Test changes later for additional services on nonprod check prod also
#services = ["logging.googleapis.com" , "dns.googleapis.com"]
services = [
"logging.googleapis.com",
"dns.googleapis.com",
"cloudbuild.googleapis.com",
"dataflow.googleapis.com",
"cloudfunctions.googleapis.com",
"compute.googleapis.com",
"pubsub.googleapis.com",
"bigquery.googleapis.com",
"servicenetworking.googleapis.com",
"networkmanagement.googleapis.com",
"sqladmin.googleapis.com"
]
Expected billing quota 5 hit on common - switching to 2nd billing account for now
https://console.cloud.google.com/cloud-build/builds;region=global/e36684be-10b4-40cb-8c48-e89b8aa17ed0?project=cnpe-cnd-cndev-sbx&supportedpurview=project
Step #3 - "tf apply": │ Error: Error setting billing account "011691-49FFF5-903E43" for project "projects/cnpe-cnd-audit-cnd": googleapi: Error 400: Precondition check failed.
Step #3 - "tf apply": │ Details:
Step #3 - "tf apply": │ [
Step #3 - "tf apply": │ {
Step #3 - "tf apply": │ "@type": "type.googleapis.com/google.rpc.QuotaFailure",
Step #3 - "tf apply": │ "violations": [
Step #3 - "tf apply": │ {
Step #3 - "tf apply": │ "description": "Cloud billing quota exceeded: https://support.google.com/code/contact/billing_quota_increase",
Step #3 - "tf apply": │ "subject": "billingAccounts/011691-49FFF5-903E43"
https://support.google.com/code/contact/billing_quota_increase
3 min as expected
d if you select "paid services"
Step #2 - "tf plan": Plan: 23 to add, 1 to change, 2 to destroy.
Step #3 - "tf apply": │ Error: error creating project cnpe-cnd-audit-cnd (CnPe-cnd-audit-cnd): googleapi: Error 409: Requested entity already exists, alreadyExists. If you received a 403 error, make sure you have the `roles/resourcemanager.projectCreator` permission
flipping name for audit
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git diff
diff --git a/environments/common/common.auto.tfvars b/environments/common/common.auto.tfvars
index 0cf9362..325293c 100644
--- a/environments/common/common.auto.tfvars
+++ b/environments/common/common.auto.tfvars
@@ -47,7 +47,7 @@ access_context_manager = { # REQUIRED OBJECT. VPC Service Controls object.
audit = { # REQUIRED OBJECT. Must include an audit object.
user_defined_string = "audit" # REQUIRED EDIT. Must be globally unique, used for the audit project
- additional_user_defined_string = "cnd" # OPTIONAL EDIT. Optionally append a value to the end of the user defined string.
+ additional_user_defined_string = "cne" # OPTIONAL EDIT. Optionally append a value to the end of the user defined string.
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git diff
diff --git a/environments/nonprod/nonp-network.auto.tfvars b/environments/nonprod/nonp-network.auto.tfvars
index 05697c6..c65b37d 100644
--- a/environments/nonprod/nonp-network.auto.tfvars
+++ b/environments/nonprod/nonp-network.auto.tfvars
@@ -4,6 +4,7 @@
* subject to your agreement with Google.
*/
+
nonprod_host_net = {
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git push csr main
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 493 bytes | 493.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3)
To https://source.developers.google.com/p/cnpe-cnd-cndev-sbx/r/cndevlzd
a5eb87f..12e0c17 main -> main
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git diff
diff --git a/environments/prod/prod-network.auto.tfvars b/environments/prod/prod-network.auto.tfvars
index ee76307..a20c069 100644
--- a/environments/prod/prod-network.auto.tfvars
+++ b/environments/prod/prod-network.auto.tfvars
@@ -4,6 +4,7 @@
* subject to your agreement with Google.
*/
+
prod_host_net = {
user_defined_string = "cnprod" # Must be globally unique. Used to create project name
additional_user_defined_string = "host2"
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git status
On branch main
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ../prod/prod-network.auto.tfvars
no changes added to commit (use "git add" and/or "git commit -a")
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git add ../prod/prod-network.auto.tfvars
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git commit -m "push prod change for trigger"
[main 6c81699] push prod change for trigger
1 file changed, 1 insertion(+)
root_@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git push csr main
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 416 bytes | 416.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (4/4)
To https://source.developers.google.com/p/cnpe-cnd-cndev-sbx/r/cndevlzd
12e0c17..6c81699 main -> main
using branch fmichaelobrien-pr-113 to review https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/pull/113
see also onboarding workloads https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/164 doc https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/163 hub/spoke VPC peering https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/146 example TF install https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/97
https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/commits/fmichaelobrien-pr-113
clone in shell
manual mods
full diff
see https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/27
root user has folder admin, org admin, owner only
running 0836
Saved the plan to: launchpad.2022-06-28.1206.plan
To perform exactly these actions, run the following command to apply: terraform apply "launchpad.2022-06-28.1206.plan" Please confirm that you have reviewed the plan and wish to apply it. Type 'yes' to proceed
INFO - Applying Terraform plan module.landing_zone_bootstrap.module.project.google_project.project: Creating... module.landing_zone_bootstrap.module.project.google_project.project: Still creating... [10s elapsed]
module.landing_zone_bootstrap.module.project.google_project.project: Still creating... [2m50s elapsed] module.landing_zone_bootstrap.module.project.google_project.project: Creation complete after 2m50s [id=projects/cnpe-cnd-cndev-sbx]
843 INFO - Committing code to CSR Specify your git config email
Writing objects: 100% (597/597), 2.55 MiB | 8.79 MiB/s, done. Total 597 (delta 225), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (225/225) To https://source.developers.google.com/p/cnpe-cnd-cndev-sbx/r/cndevlzd
oot_@cloudshell:~/cloudshellopen/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git add ../common/common.auto.tfvars root@cloudshell:~/cloudshellopen/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git commit -m "push initial cloud builds - common" [main b8677a6] push initial cloud builds - common 1 file changed, 1 insertion(+) root@cloudshell:~/cloudshell_open/pbmm-on-gcp-onboarding/environments/bootstrap (landing-zone-stg-cndev)$ git push csr main