-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adding examples and documentation for state management
- Loading branch information
1 parent
01f0fe7
commit d458080
Showing
4 changed files
with
138 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
terraform { | ||
backend "gcs" { | ||
bucket = "<my-terraform-state-bucket>" | ||
# You can generate a key with 'openssl rand -base64 32' | ||
# You can set the key explicitly or via exporting GOOGLE_ENCRYPTION_KEY | ||
# Make sure to safely store the key, since your Terraform state cannot be recovered if the key is lost | ||
encryption_key = "<my-encryptionkey>" | ||
} | ||
} | ||
|
||
module "jx" { | ||
source = "jenkins-x/jx/google" | ||
|
||
gcp_project = "<my-gcp-project-id>" | ||
} |
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,13 @@ | ||
terraform { | ||
backend "gcs" { | ||
bucket = "<my-terraform-state-bucket>" | ||
# arbitrary prefix/directory within the bucket | ||
prefix = "jx" | ||
} | ||
} | ||
|
||
module "jx" { | ||
source = "jenkins-x/jx/google" | ||
|
||
gcp_project = "<my-gcp-project-id>" | ||
} |
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,5 @@ | ||
module "jx" { | ||
source = "jenkins-x/jx/google" | ||
|
||
gcp_project = "<my-gcp-project-id>" | ||
} |