Skip to content

3867 terraform #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 35 commits into
base: 3742-create-data-backend
Choose a base branch
from
Open

3867 terraform #65

wants to merge 35 commits into from

Conversation

jdhayhurst
Copy link
Contributor

Resolves opentargets/issues#3867

  • Adds terraform and justfile interface to POS

@remo87
Copy link
Contributor

remo87 commented May 29, 2025

It would be nice to have an output for the value gs://open-targets-ops/logs/platform-pos/${INSTANCE_LABEL}/pos/google-startup-scripts.log as we always struggle to find said file if we no longer have the id present

name = local.clickhouse_disk_name
description = "Clickhouse data disk"
type = "pd-ssd"
zone = "europe-west1-d"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe leave this as a variable in case the zone is not available we can configure it. With the default value set to "europe-west1-d"


// Create a disk volume for Clickhouse data
resource "google_compute_disk" "clickhouse_data_disk" {
project = "open-targets-eu-dev"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the project could also be a variable with the default value to eu-dev

clickhouse_steps
wait
journalctl -u google-startup-scripts.service > /var/log/google-startup-scripts.log
gsutil -m cp /var/log/google-startup-scripts.log gs://open-targets-ops/logs/platform-pos/${INSTANCE_LABEL}/pos/google-startup-scripts.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add an output to get the log file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants