Skip to content
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

feat: add terraform module for partners #294

Merged
merged 2 commits into from
Sep 20, 2023
Merged

Conversation

itegulov
Copy link
Contributor

WARNING: this branch is targeting main

This PR adds a dedicated terraform module that our partners will be using. It is tailored to create a single signer node and assumes that they have a docker image on their machine (I have a .tar file that I can share with people who don't have an x86 machine, other people can build their own image if they want).

This also adds a migration script that I plan to use to migrate Satori to NEAR Tasks. Will delete it from the repo after we are done, but just want to get another pair of eyes on just in case.

Copy link
Collaborator

@volovyks volovyks left a comment

Choose a reason for hiding this comment

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

LGTM
Some configs are very similar to what we have in infra/signer.
Can we reuse those files?
Why there is no google_secret_manager_* res?

Copy link
Member

@ChaoticTempest ChaoticTempest left a comment

Choose a reason for hiding this comment

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

LGTM with just a couple comments to see if they're issues


credentials_source = service_account.Credentials.from_service_account_file(
'../source-service-keys.json')
client_source = datastore.Client(project="pagoda-discovery-platform-dev", credentials=credentials_source)
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing parameters like project="pagoda-discovery-platform-dev" are just here for reference when the migration for Satori is done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I will replace these placeholders with actual values before running the script, just not sure what their projects are called yet

required_providers {
google = {
source = "hashicorp/google"
version = "4.66.0"
Copy link
Member

Choose a reason for hiding this comment

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

any reason why we're using an older version instead of the same one in develop: 4.73.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am just using what is currently in main, we bumped the version in develop some time back.

@itegulov itegulov merged commit 1e2bc05 into main Sep 20, 2023
0 of 3 checks passed
volovyks added a commit that referenced this pull request Sep 21, 2023
* feat: terraform configuration (#170)

* feat: add terraform module for partners (#294)

* redundant variables deleted

* terraform fmt

* redundant parameters deleted

* lookup_url deleted from setup

* fmt

* redundant dep deleted

* duplicated service-account-datastore-user deleted

* unused terraform value firebase_audience_id deleted

* terraform fmt

---------

Co-authored-by: Daniyar Itegulov <ditegulov@gmail.com>
Co-authored-by: DavidM-D <dmillardurrant@gmail.com>
Co-authored-by: Phuong Nguyen <ChaoticTempest@users.noreply.github.com>
@itegulov itegulov deleted the daniyar/partner-terraform branch October 27, 2023 00:14
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.

3 participants