-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rick Doan
committed
Dec 14, 2022
1 parent
8e22654
commit 534800c
Showing
6 changed files
with
74 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Terraform Infra Setup | ||
|
||
- Clone git repo and cd to terraform directory | ||
|
||
```bash | ||
git clone https://github.com/locdoan12121997/ticketsim.git && cd terraform | ||
``` | ||
|
||
- Init terraform | ||
|
||
```bash | ||
terraform init | ||
``` | ||
|
||
- View the Terraform plan | ||
|
||
You will be asked to enter the name of the GCS bucket you want to create, your GCP Project ID, and non-quoted path to service account json. Use the same values throughout the project. | ||
|
||
```bash | ||
terraform plan | ||
``` | ||
|
||
- Apply the infra. **Note** - Billing will start as soon as the apply is complete. | ||
|
||
```bash | ||
terraform apply | ||
``` | ||
|
||
- Once you are done with the project. Teardown the infra using- | ||
|
||
```bash | ||
terraform destroy | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters