Skip to content

Commit

Permalink
fix: add google api management (#11)
Browse files Browse the repository at this point in the history
* fix: add management of google apis

* fix: revert old sem release rules

* fix: enable needed google apis
  • Loading branch information
alexouzounis authored and ouzibot committed Oct 23, 2019
1 parent 0b60967 commit 0fb4bda
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ semantic-release:
.PHONY: semantic-release-dry-run
semantic-release-dry-run:
npm ci
npx semantic-release -d
npx semantic-release -d

package-lock.json: package.json
npm install
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ locals {
}
}

resource "google_project_service" "project" {
for_each = var.google_apis

project = var.gcloud_project
service = each.value
disable_dependent_services = false
}

## Modules
module "gke-cluster" {
source = "git@github.com:ouzi-dev/gke-terraform.git?ref=v0.3"
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"type": "fix",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "feat",
"release": "minor"
Expand Down
20 changes: 20 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,24 @@ variable "github_org" {

variable "base_domain" {
type = string
}

variable "google_apis"{
type = set(string)
default = [
"iam.googleapis.com",
"cloudresourcemanager.googleapis.com",
"container.googleapis.com",
"compute.googleapis.com",
"iamcredentials.googleapis.com",
"storage-api.googleapis.com",
"storage-component.googleapis.com",
"cloudapis.googleapis.com",
"containerregistry.googleapis.com",
"logging.googleapis.com",
"monitoring.googleapis.com",
"servicemanagement.googleapis.com",
"serviceusage.googleapis.com",
"dns.googleapis.com"
]
}

0 comments on commit 0fb4bda

Please sign in to comment.