Skip to content

Commit

Permalink
Merge pull request #19 from GaloyMoney/bq-integration
Browse files Browse the repository at this point in the history
chore: big-query integration
  • Loading branch information
bodymindarts authored Aug 19, 2024
2 parents f31107c + 61492a2 commit cdf3869
Show file tree
Hide file tree
Showing 16 changed files with 622 additions and 82 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BIN_OUT_DIR := out
BINARY := $(BIN_OUT_DIR)/terraform-provider-cala

version = 0.0.19
version = 0.0.20
os_arch = $(shell go env GOOS)_$(shell go env GOARCH)
provider_path = registry.terraform.io/galoymoney/cala/$(version)/$(os_arch)/

Expand Down
27 changes: 27 additions & 0 deletions cala/graphql/big-query.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
query bigQueryIntegrationGet($id: UUID!){
bigQuery {
integration(id: $id) {
integrationId
name
description
gcpProjectId
gcpDatasetId
}
}
}

mutation bigQueryIntegrationCreate($input: BigQueryIntegrationCreateInput!) {
bigQuery {
integrationCreate(
input: $input
) {
integration {
integrationId
name
description
gcpProjectId
gcpDatasetId
}
}
}
}
6 changes: 3 additions & 3 deletions docs/resources/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ resource "cala_account" "alice" {
resource "random_uuid" "bank" {}
resource "cala_account" "bank" {
id = random_uuid.bank.result
name = "Bank cash"
code = "BANK.DEPOSITS.${random_uuid.bank.result}"
id = random_uuid.bank.result
name = "Bank cash"
code = "BANK.DEPOSITS.${random_uuid.bank.result}"
normal_balance_type = "DEBIT"
}
```
Expand Down
45 changes: 45 additions & 0 deletions docs/resources/big_query_integration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "cala_big_query_integration Resource - terraform-provider-cala"
subcategory: ""
description: |-
Cala BigQuery Integration.
---

# cala_big_query_integration (Resource)

Cala BigQuery Integration.

## Example Usage

```terraform
variable "service_account_creds" {
sensitive = true
default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id" "integration_id" {}
resource "cala_big_query_integration" "bq" {
id = random_uuid.integration_id.result
name = "bq-integration"
project_id = "cala-enterprise"
dataset_id = "cala-enterprise-dev"
service_account_creds_base64 = var.service_account_creds
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `dataset_id` (String) Gcp Biq Query Dataset Id
- `id` (String) ID of the integration.
- `name` (String) Name of the integration.
- `project_id` (String) Gcp Project Id
- `service_account_creds_base64` (String, Sensitive) The GCP service account creds

### Optional

- `description` (String) Description of the integration.
4 changes: 2 additions & 2 deletions docs/resources/bitfinex_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Cala Bitfinex Integration.
```terraform
variable "bitfinex_key" {
sensitive = true
default = "dummy"
default = "dummy"
}
variable "bitfinex_secret" {
sensitive = true
default = "dummy"
default = "dummy"
}
resource "random_uuid" "journal_id" {}
Expand Down
13 changes: 13 additions & 0 deletions examples/cala-enterprise-a8f0d425bc44.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "service_account",
"project_id": "cala-enterprise",
"private_key_id": "a8f0d425bc441120a16788f6eb89e947b5d0d632",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCjtYXSXfhPNNNl\nWxqwuUpTBWssQtAp/0sQ41RGDBGWDoGAXKKA3hXxeMqQ9gB9gbe/FmMs9RKcNJah\nHCOjJPjzr+VRXcHTebG3KhPIK37rq+ZSN43l192PAR900D9RrvYBOpMaP6uUDidd\nQn5UsRDT6RITaedQVjl6Os5i89KKR7l6h4LYM2jJsWyEkI9VPkMO17m+0XNYLDNl\nwfsCQRLpjlHg7LznRtme2v7Q+nyYK7wZ1yRfasoPbvL1q1cHbhxDr4KjJiZsECur\nCbkUh2bcCNsPl7XgfVstkqfRYGvVrPBWX8kzWeBDozpy6Vpd8yMwe3iAv3hfjlQf\nIrKaEkflAgMBAAECggEAIRo2m8W4DK4KE8v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RePJBS3DSR/GnP+\nCAZPnrXX4Ff+H33ymRskuTfzTK4zTZskhvgFwZVWcgIXGxukrsgGy1CHctv4ADOh\nJbCy6NGrJXPaAcD7dOcFv8baAVRjG+NOgiUV2nmXpbs3iGZJjCRBP+Sn/z0bMK6i\nelFGcuSll9CHRgKLr0vC9cQ=\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "117232228864903508261",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/gha-ci-cala-bq-access%40cala-enterprise.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}
6 changes: 5 additions & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ module "account_set_member_account_set" {
source = "./resources/cala_account_set_member_account_set"
}

module "big_query_integration" {
source = "./resources/cala_big_query_integration"
}

module "bitfinex_integration" {
source = "./resources/cala_bitfinex_integration"
}
Expand All @@ -30,7 +34,7 @@ terraform {
required_providers {
cala = {
source = "registry.terraform.io/galoymoney/cala"
version = "0.0.18"
version = "0.0.20"
}
}
}
6 changes: 3 additions & 3 deletions examples/resources/cala_account/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ resource "cala_account" "alice" {

resource "random_uuid" "bank" {}
resource "cala_account" "bank" {
id = random_uuid.bank.result
name = "Bank cash"
code = "BANK.DEPOSITS.${random_uuid.bank.result}"
id = random_uuid.bank.result
name = "Bank cash"
code = "BANK.DEPOSITS.${random_uuid.bank.result}"
normal_balance_type = "DEBIT"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
terraform {
required_providers {
cala = {
source = "registry.terraform.io/galoymoney/cala"
}
}
}

provider "cala" {
endpoint = "http://localhost:2252/graphql"
}
14 changes: 14 additions & 0 deletions examples/resources/cala_big_query_integration/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
variable "service_account_creds" {
sensitive = true
default = "ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2plY3RfaWQiOiAiY2FsYS1lbnRlcnByaXNlIiwKICAicHJpdmF0ZV9rZXlfaWQiOiAiYThmMGQ0MjViYzQ0MTEyMGExNjc4OGY2ZWI4OWU5NDdiNWQwZDYzMiIsCiAgInByaXZhdGVfa2V5IjogIi0tLS0tQkVHSU4gUFJJVkFURSBLRVktLS0tLVxuTUlJRXZRSUJBREFOQmdrcWhraUc5dzBCQVFFRkFBU0NCS2N3Z2dTakFnRUFBb0lCQVFDanRZWFNYZmhQTk5ObFxuV3hxd3VVcFRCV3NzUXRBcC8wc1E0MVJHREJHV0RvR0FYS0tBM2hYeGVNcVE5Z0I5Z2JlL0ZtTXM5UktjTkphaFxuSENPakpQanpyK1ZSWGNIVGViRzNLaFBJSzM3cnErWlNONDNsMTkyUEFSOTAwRDlScnZZQk9wTWFQNnVVRGlkZFxuUW41VXNSRFQ2UklUYWVkUVZqbDZPczVpODlLS1I3bDZoNExZTTJqSnNXeUVrSTlWUGtNTzE3bSswWE5ZTERObFxud2ZzQ1FSTHBqbEhnN0x6blJ0bWUydjdRK255WUs3d1oxeVJmYXNvUGJ2TDFxMWNIYmh4RHI0S2pKaVpzRUN1clxuQ2JrVWgyYmNDTnNQbDdYZ2ZWc3RrcWZSWUd2VnJQQldYOGt6V2VCRG96cHk2VnBkOHlNd2UzaUF2M2hmamxRZlxuSXJLYUVrZmxBZ01CQUFFQ2dnRUFJUm8ybThXNERLNEtFOHZTN3dxY2NvS2RPK2NycDk1UkM3Sm42ejBML2t0alxuR0xWQ2Y2dkloSm52M2RWOFhtUnhKdUNzUDU0emUrWHZVbGI2QnNaV1Y1SUkzTVhJU0U1cVpyYkpwcmRTMCswZlxucHA3SW9NSGdNVWNoR1BIMTU3cW8wREZMcHVwYWM1YlVFMW03YVQwZmdiWDJXM29WM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aXZlcnNlX2RvbWFpbiI6ICJnb29nbGVhcGlzLmNvbSIKfQo="
}

resource "random_uuid" "integration_id" {}

resource "cala_big_query_integration" "bq" {
id = random_uuid.integration_id.result
name = "bq-integration"
project_id = "cala-enterprise"
dataset_id = "cala-enterprise-dev"
service_account_creds_base64 = var.service_account_creds
}
4 changes: 2 additions & 2 deletions examples/resources/cala_bitfinex_integration/resource.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
variable "bitfinex_key" {
sensitive = true
default = "dummy"
default = "dummy"
}

variable "bitfinex_secret" {
sensitive = true
default = "dummy"
default = "dummy"
}

resource "random_uuid" "journal_id" {}
Expand Down
Loading

0 comments on commit cdf3869

Please sign in to comment.