@api3/operations
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-3bd7c9d51d4020468d5d85409b6a23d81284e3e1 • Public • Published

@api3/operations

The Operations repository stores data and utilities relating to API3 operations and dAPIs

Documentation

Integrating a new API Provider

Integrating a new API provider for the purposes of deploying data feeds and dAPIs requires the intervention of API3 staff, but we welcome PRs for this purpose. To integrate a new API provider, refer to Integrating a New Provider.

Database

This repository includes Terraform resources to deploy an Amazon RDS instance for a PostgreSQL database. These can be found in the terraform directory.

Requirements

Configuration

AWS account

You will need to have an AWS account setup with the correct permissions. Make sure to note down your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY when creating a new user.

If you haven't configured the AWS CLI user, you can export these variables in your current shell:

export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."

Deployment

To deploy the database cd into the terraform directory and run the following commands:

Plan

You can view a "plan" of what Terraform will deploy by running:

terraform plan

This will not create or deploy anything to AWS.

Init

You will need to initialize Terraform which will download the required plugins by running:

terraform init

Apply

You can deploy the database by running:

terraform apply
# You can also optionally provide a region for the deployment (defaults to us-east-1) with e.g. -var 'aws_region=us-west-1'
# Enter the database password and username when prompted for var.db_password and var.db_username

Destroy

You can remove the deployment by running:

terraform destroy -auto-approve
# Enter the database password and username when prompted for var.db_password and var.db_username

Readme

Keywords

none

Package Sidebar

Install

npm i @api3/operations

Weekly Downloads

2

Version

0.0.1-3bd7c9d51d4020468d5d85409b6a23d81284e3e1

License

MIT

Unpacked Size

13.4 MB

Total Files

503

Last publish

Collaborators

  • siegrift
  • dcroote
  • aquarat
  • bbenligiray