Skip to content

Commit 9db6c30

Browse files
author
Florencia Comuzzi
committed
fmt
1 parent 957977d commit 9db6c30

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/terraform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
uses: actions/checkout@v2
3939

4040
- id: 'auth'
41+
name: 'Authenticate to Google Cloud'
4142
uses: 'google-github-actions/auth@v2'
4243
with:
4344
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'

SETUP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Deployments are triggered from GitHub Actions workflows.
1111
* Create a service account JSON file.
1212
* Add as a repository secret by going to Settings > Secrets and variables > Actions. Name it GCP_CREDENTIALS and paste in the credentials JSON.
1313
* Create the buckets for Terraform state like `prod-tf-state-bucket`. The bucket names are specified in the `backend/{env}.tfvars` file.
14+
* Go to the bucket > Permissions > Add Member > Service Account > k8s-environment-terraform-cicd@florenciacomuzzi.iam.gserviceaccount.com > Role > Storage Object Admin.
1415

1516
### Linode
1617
* Login to Linode account.

providers.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
# change to google
44
required_providers {
55
google = {
6-
source = "hashicorp/google"
6+
source = "hashicorp/google"
77
version = "6.24.0"
88
}
99
}
@@ -15,6 +15,6 @@ terraform {
1515
# # token = var.token
1616
# }
1717
provider "google" {
18-
project = var.project_id
19-
region = var.region
18+
project = var.project_id
19+
region = var.region
2020
}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ variable "project_id" {
1212

1313
variable "region" {
1414
type = string
15-
default = "us-east1"
15+
default = "us-east1"
1616
description = "GCP region"
1717
}
1818

variables/dev.auto.tfvars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
project_id = "florenciacomuzzi"
2-
region = "us-east1"
3-
vpc_name = "dev"
2+
region = "us-east1"
3+
vpc_name = "florenciacomuzzi-vpc-dev"

0 commit comments

Comments
 (0)