Skip to content

Commit

Permalink
update open in cloudshell
Browse files Browse the repository at this point in the history
  • Loading branch information
jawabuu committed Jan 15, 2021
1 parent 48d99f0 commit 87ca1e2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ Provide the required information and you should be greeted with this page.
</details>


---

<a href="https://ssh.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/nufailtd/terraform-budget-gcp&open_in_editor=README.md&tutorial=tutorial.md" target="_blank"><img alt="Open this project in Cloud Shell" src ="https://gstatic.com/cloudssh/images/open-btn.svg"></a>

---

Expand All @@ -110,7 +113,10 @@ default_region = "us-central1"
sa_enable_impersonation = true
```

[![Open this project in Cloud Shell](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/nufailtd/terraform-budget-gcp&open_in_editor=main.tf&cloudshell_workspace=seed_project)
Switch to the `seed_project` folder;
```
cd seed_project
```

Then perform the following commands on the seed_project folder:

Expand Down Expand Up @@ -148,10 +154,12 @@ name = "myproject"
## This section has been auto-generated by ./create-tfvars.sh ##
```

Switch to the `budget_gcp_project` folder;
```
cd budget_gcp_project
```

[![Open this project in Cloud Shell](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/nufailtd/terraform-budget-gcp&open_in_editor=main.tf&cloudshell_workspace=budget_gcp_project)

Then perform the following commands in the budget_gcp_project folder:
Then perform the following commands:

- `terraform init` - to get the plugins
```
Expand Down Expand Up @@ -301,9 +309,11 @@ oidc_config = [
]
```

[![Open this project in Cloud Shell](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/nufailtd/terraform-budget-gcp&open_in_editor=main.tf)

Then perform the following commands:
Make sure yo are in the root folder
```
cd ..
```
Then perform the following commands:

It is recommended to run this before performing the subsequent commands.
This ensures that you use the project's service account to create resources.
Expand Down
4 changes: 0 additions & 4 deletions budget_gcp_project/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Create a Budget GCP Project
Create a project to host our infrastructure.

[![Open this project in Cloud Shell](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/nufailtd/terraform-budget-gcp&open_in_editor=main.tf&cloudshell_workspace=budget_gcp_project)



Create a `terraform.tfvars` files in this directory by running
```
./create-tfvars.sh myproject
Expand Down
2 changes: 0 additions & 2 deletions seed_project/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Create a GCP Seed Project
Create a seed project in an organization to manage creation of other projects using terraform.

[![Open this project in Cloud Shell](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/nufailtd/terraform-budget-gcp&open_in_editor=main.tf&cloudshell_workspace=seed_project)

You will most likely **not** need to run this.
Use the `budget_gcp_project` instead.
This module requires you to have previously set up an organization through;
Expand Down

0 comments on commit 87ca1e2

Please sign in to comment.