Skip to content

Commit

Permalink
Test tf
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhny committed Sep 20, 2024
1 parent ca9bd4d commit 0c7c7e8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tftest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Deploy to GCP"

on:
push:


jobs:
sandbox:
name: Deploy to sandbox
permissions:
# For logging on to Vault, GCP
id-token: write
# For writing comments on PR
pull-requests: write
# For fetching git repo
contents: read
# For accessing repository
uses: kartverket/github-workflows/.github/workflows/run-terraform.yml@be30aa49e156eea06e9173b568910f7e74f2d436
with:
runner: ubuntu-latest
working_directory: test
auth_project_number: "833464919209"
service_account: utviklerportal-deploy@utviklerportal-sandbox-5af9.iam.gserviceaccount.com
project_id: utviklerportal-sandbox-5af9
use_platform_modules: true
25 changes: 25 additions & 0 deletions test/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module "cloudsql_test" {
source = "git@github.com:kartverket/terraform-modules.git/?ref=cloud_sql/0.1.0"
env = "sandbox"
instance_name = "test2"
project_id = "skip-sandbox-37c2"
iam_users = {
some-user = {
app_namespace = "foo-main"
app_name = "some-api-backend"
},
}
}

terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "6.3.0"
}
}
}

provider "google" {
region = "europe-north1"
}

0 comments on commit 0c7c7e8

Please sign in to comment.