-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
There was a problem hiding this 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?
There was a problem hiding this 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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
* 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>
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.