Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 894 Bytes

File metadata and controls

33 lines (21 loc) · 894 Bytes

Flask app Deployment

  • Github commit triggers source pull by codepipeline

  • codebuild uses buildspec.yml to build image, push to ecr

  • another codepipeline with ecr as a source and ecs as a deployment target

  • ecs task definition configured with image in ecr

    • env vars set by values in systems manager parameter store
  • ecs service definition for network config

MYSQL Deployment

  • RDS instance
    • defined with cloudformation or terraform
    • uses the same ssm parameter store values for db config

Logging

  • Cloudwatch logging configured for both deployments
  • metrics to query/dashboard:
    • route response times
    • count errors (db, bad http responses)
  • alarms for when those metrics are bad

Misc

  • Use builder images to remove dependencies on dockerhub and pypi
  • Create separate pipelines for develop and master deployments
  • autoscaling service definition