Giter Site home page Giter Site logo

fh-matchmaking-api's Introduction

Facing Homelessness Matchmaking API

API server for Facing Homelessness' Block Project website

Deploying

This is set up to deploy to three stages/environments, dev, stage, and prod. dev is meant to be used for development purposes, stage for staging and acceptance testing, and prod for production.

When deploying, it will use an AWS profile called fh. If you need to manually deploy, configure your IAM credentials using the AWS SDK under a profile named fh. Your IAM role must have the necessary permissions to deploy a Serverless AWS Node.js project.

The travis build auto-deploys to the stage environment when a master build completes successfully. ci/aws-credentials.enc is an encrypted AWS credentials file. The fh user in the file must have the necessary permissions to deploy a Serverless AWS Node.js project.

Stack creation

When creating a new stack, an initial admin user will be created. However, there are a couple of manual steps needed. For some reason, I can't get UserPoolUserToGroupAttachment to work with a just-created user, so the new user needs to be added to the admins group:

# AWS_PROFILE=fh aws cognito-idp admin-add-user-to-group --region us-west-2 --user-pool-id <user pool id> --username <username> --group-name admins

Also, CloudFormation doesn't seem to allow creating users with emails pre-verified, so the admin user's email should be set to verified:

# AWS_PROFILE=fh aws cognito-idp admin-update-user-attributes --region us-west-2 --user-pool-id <user pool id> --username <username> --user-attributes '[{"Name": "email_verified", "Value": "true"}]'

<user pool id> is in the stack outputs, and you can get <username> with this command:

AWS_PROFILE=fh aws cognito-idp admin-get-user --region us-west-2 --user-pool-id <user pool id> --username [email protected]

Finally, the user pool email configuration needs to be set up. You need to specify the user that will be the sender for account creation emails, password reset emails, etc. Using the AWS console, use SES and the Cognito user pool to set up a verified from address.

fh-matchmaking-api's People

Contributors

bendemboski avatar chadkirby avatar dependabot[bot] avatar

Stargazers

Darvin Sinaga avatar David Wells avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

chadkirby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.