openknowledge-archive / dpr-api

DEPRECATED - Data Package Registry API and Frontend
http://frictionlessdata.io/
MIT License
7 stars 6 forks source link

Move off AWS Lambda / API Gateway #301

Closed rufuspollock closed 7 years ago

rufuspollock commented 7 years ago

We've had a bunch of issues with Lamba / API gateway setup:

=>

Acceptance Criteria

Tasks

Prep

Implement

Analysis

graph TD

  user[fa:fa-user User] --> frontend
  frontend[Frontend] --> db[Database]
  frontend --> bits[S3]

AWS

graph TD

  user[fa:fa-user User] --> cloudfront
  cloudfront --> apigateway[API Gateway]
  apigateway --> lambda[AWS Lambda - Flask via Zappa]
  cloudfront --> s3assets[S3 Assets]
  lambda --> rds[RDS Database]
  lambda --> bits[S3 Bits]

Heroku

graph TD

    user[fa:fa-user User] --> heroku
    heroku[Heroku - Flask] --> rds[RDS Database]
    heroku --> bits[S3 Bits]

image

rufuspollock commented 7 years ago

One issue with the ssl: we can't get cloudflare ssl working with bits.xxx.yyy.com because cloudflare wildcards only cover one level (see this doc).

To fix this: move the staging bits to bits-staging.yyy.com (for full production we could still use bits.yyy.com).

rufuspollock commented 7 years ago

90% done but not quite there in this sprint so moving to next.

zelima commented 7 years ago

Still remaining things like remove flasks3bucket stuff and cleaning up buckets on AWS s3

zelima commented 7 years ago

FIXED all the ansible and zappa stuff removed from code base