Skip to content

Convert 2017 Transportation API from EC2 to Fargate #266

@MikeTheCanuck

Description

@MikeTheCanuck

Addresses #244 for the 2017 Transportation API. Mirrors the work in #259 and #260, and implements similar changes as hackoregon/hackoregon-aws-infrastructure#84. Uses the migration procedure documented here.

Acceptance Criteria

Tests that will confirm the container has successfully migrated:

  1. CloudFormation will report UPDATE_COMPLETE for the enhanced stack
  2. ECS will report (a) "Launch Type FARGATE" for the service, (b) 1 Task Running at the Task level, and (c) at the Task detail level a "Started at" timestamp that is at least 5 minutes into the past (which indicates that the container stayed RUNNING long enough to pass the ALB health check cycle)
  3. latest log in CloudWatch group for the associated service will show entries of the form
[2019-08-10 17:43:52 +0000] [45] [DEBUG] GET /transport/
[2019-08-10 17:43:52 +0000] [45] [DEBUG] Closing connection.
  1. browser requests to https://service.civicpdx.org/transport/-rooted APIs will error out in various ways (though the swagger page on /transport/ will look fine): /transport/conflicts will eventually throw a 504, /transport/features will throw a 502, and /transport/nearby will throw a 500.
  2. latest CloudWatch logs will display a recent web request to /housing/features/ the following log lines:
[2019-08-11 17:33:45 +0000] [50] [DEBUG] GET /transport/features/
featurecount 18966

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions