hashgraph / hedera-exchange-rate-tool

Hedera Exchange Rate Tool to send median of HBAR/USD exchange rate from various Exchanges to Hedera Network
Apache License 2.0
2 stars 4 forks source link

Add gcp suuport #186

Open anighanta opened 2 years ago

anighanta commented 2 years ago

Related issue(s): Closes #

Summary of the change:

  1. create 2 entry points. one for AWS and one for GCP2.
  2. read config from GCP cloud storage bucket.
  3. create, connect and perform CURD operations on the postgres database instance of GCP Cloud SQL from the deployed cloud function
  4. Was able to read the secrets [encrypted variables] as environment variables to avoid saving keys in plain text5.
  5. Able to publish messages to GCP Pub/Sub as pull service.
  6. Able to schedule a GCP cloud function with this build and run periodically on top of the hour

External impacts: Need to update builds on AWS accordingly and update the Mainnet and Testnet database instances to match the new snake case fields for tables and its properties.

Applicable documentation