You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SETUP.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# florenciacomuzzi-site-terraform
1
+
# k8s-environment-terraform
2
2
This repository contains Terraform code to create a Linode instance and deploy a website to it.
3
3
The infrastructure is managed using Hashicorp Terraform Cloud.
4
4
Deployments are triggered from GitHub Actions workflows.
@@ -9,7 +9,6 @@ Deployments are triggered from GitHub Actions workflows.
9
9
* Login to GCP account.
10
10
* Create a service account like `k8s-environment-terraform-cicd` to use for CICD.
11
11
* Create a service account JSON file.
12
-
* Add as a repository secret by going to Settings > Secrets and variables > Actions. Name it GCP_CREDENTIALS and paste in the credentials JSON.
13
12
* Create the buckets for Terraform state like `prod-tf-state-bucket`. The bucket names are specified in the `backend/{env}.tfvars` file.
14
13
* Go to the bucket > Permissions > Add Member > Service Account > k8s-environment-terraform-cicd@florenciacomuzzi.iam.gserviceaccount.com > Role >
15
14
* Storage Object Admin
@@ -25,7 +24,7 @@ like `454824995744-compute@developer.gserviceaccount.com`. Go to IAM & Admin > S
25
24
26
25
### GitHub
27
26
* Clone this repository. Name it like "mysite-site-terraform".
28
-
*Create a TF_API_TOKEN repository secret by going to Settings > Secrets and variables > Actions. This secret is used by GitHub Actions to authenticate to Hashicorp Terraform Cloud during runs.
27
+
*Add as a repository secret by going to Settings > Secrets and variables > Actions. Name it GCP_CREDENTIALS and paste in the credentials JSON.
29
28
* Change the values of TF_CLOUD_ORGANIZATION and TF_WORKSPACE in .github/workflows/terraform-apply.yml and .github/workflows/terraform-plan.yml.
0 commit comments