Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PXP-8779 HP-347 Feat/ecs #38

Merged
merged 169 commits into from
Nov 3, 2021
Merged

PXP-8779 HP-347 Feat/ecs #38

merged 169 commits into from
Nov 3, 2021

Conversation

mfshao
Copy link
Contributor

@mfshao mfshao commented Oct 26, 2021

Jira Ticket: PXP-8779 HP-347

Hachery PR for supporting decoupled workspace (design doc)

Add the following block into Hatchery config to enable decoupled workspace

 "pay-models": [{
      "user_id": "johmsmith@gmail.com",
      "aws_account_id": "12345678",
      "name": "myworkspaces",
      "region": "us-east-1",
      "ecs": "true",     --> optional, if omitted, will use EKS to spinup decoupled workspaces
      "subnet": 0
    },
   ...
]

New Features

  • Decoupled workspaces can be fulfilled by either EKS or ECS
  • For ECS workspaces, presistent storage volume are mounted using EFS
  • Fetch pay model data from DynamoDB; temporarily allow fallbacks to the Hatchery configuration file (PR PXP-8341 Fetch pay models from DynamoDB #35)
  • Traffics are routed through AWS Transit Gateway
  • Mount API key to decoupled workspace container when launching, and revoke them when terminating

Improvements

Deployment changes

  • Add pay-models-dynamodb-table to the Hatchery configuration file to fetch pay model data from DynamoDB (PR PXP-8341 Fetch pay models from DynamoDB #35)
  • Update the Hatchery configuration file pay-models block to change the user field name to user_id (PR PXP-8341 Fetch pay models from DynamoDB #35)
  • Add gen3-volume-location to the Hatchery configuration file for each container to overwrite the directory that API key will be saved to (PR eks mount fix #33)
  • Update the Hatchery configuration file pay-models block to add option ecs for enabling ECS decoupled workspace
  • Update the Hatchery configuration file pay-models block to add option subnet for setup transit gateway subnet addresses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants