Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

What does the script do?

It adds integrations to Pizzly, grabbing the appropriate secrets from AWS Secrets Manager.

Prerequisites

Adding secrets to AWS Secrets Manager

You need to have added secrets in AWS Secrets Manager for the integrations you want to add.

With the name format integrations/<service>/<client_id> and a key value pair of client_secret: <secret_value>.

Setup an AWS profile locally

  1. Install the AWS CLI
  2. Configure the AWS CLI

How to use the script

  1. Move to the right directory
cd packages/internal-cli
  1. Run the script
pnpm run cli <path_to_your_provider_json_file>

Example provider JSON file

{
  "github": {
    "client_id": "<github client id>"
  },
  "slack": {
    "client_id": "<slack client id>"
  }
}

Options

Pizzly host

-p or --pizzlyhost

Pass the base url for Pizzly, defaults to http://localhost:3004.

Pizzly secret key

-s or --pizzlysecretkey

Pass the secret key for Pizzly, defaults to undefined which will work locally in the default configuration. In production you will want to set a Pizzly secret key, see their docs for details.

AWS profile

-a or --awsprofile

Pass the AWS profile to use, defaults to default.