-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add replace directive to go.mod, and update README.md file
- Loading branch information
1 parent
93c3dfd
commit 6744c3a
Showing
4 changed files
with
46 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cdktf-example.json |
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 |
---|---|---|
@@ -1,3 +1,40 @@ | ||
# google-cloudrun | ||
|
||
A port of the TypeScript example at: https://github.com/hashicorp/terraform-cdk/tree/main/examples/typescript/google-cloudrun | ||
|
||
This resembles the example for the Google Cloud at [Hashicorp Learn](https://learn.hashicorp.com/terraform/gcp/build) | ||
|
||
## Usage | ||
|
||
Install project dependencies | ||
|
||
```shell | ||
go get ./... | ||
``` | ||
|
||
Generate CDK for Terraform constructs for Terraform provides and modules used in the project. | ||
|
||
```bash | ||
cdktf get | ||
``` | ||
|
||
You can now edit the `main.go` file if you want to modify any code. | ||
|
||
Make sure to create your credential file `cdktf-example.json` to make this example usable. | ||
|
||
Generate Terraform configuration | ||
|
||
```bash | ||
cdktf synth | ||
``` | ||
|
||
The above command will create a folder called `cdktf.out` that contains all Terraform JSON configuration that was generated. | ||
|
||
See changes `cdktf diff` and deploy via `cdktf deploy`. | ||
|
||
When you're done run `cdktf destroy`. | ||
|
||
You need | ||
|
||
- `GCP project ID` | ||
- `cdktf-example.json` file containing your GCP `credentials` |
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