Skip to content

Latest commit

 

History

History
52 lines (49 loc) · 1.79 KB

File metadata and controls

52 lines (49 loc) · 1.79 KB

ProjectSprint ECS example

This repo contains example on how to interact with ProjectSprint ECS

Prerequisite

Setup

  • Make sure you already tell the administrator at the discord server about:

    • team app name
    • team services names

    To be allowed to be created by your account

  • Set your environment variables

    export AWS_ACCESS_KEY=""
    export AWS_SECRET_KEY=""
    export AWS_REGION=""
    export PROJECTSPRINT_VPC=""
    export PROJECTSPRINT_PUBLIC_SUBNET_1=""
    export PROJECTSPRINT_PUBLIC_SUBNET_2=""
    export PROJECTSPRINT_PRIVATE_SUBNET_1=""
    export PROJECTSPRINT_PRIVATE_SUBNET_2=""
  • Set your copilot app

    # Run this only once
    copilot app init your-ecs-service-name
  • Set your env (this is for creating a env called staging)

    # Run this only once, this command will not override `./copilot/environments/staging/manifest.yml` if it's exists
    copilot env init -n staging
    # Run this only once, or run in again if you change something in `./copilot/environments/staging/manifest.yml`
    copilot env deploy
  • Set your app (this is for creating a service called example-1)

    # Run this only once, this command will not override `./copilot/example-1/manifest.yml` if it's exists
    copilot svc init -n example-1

Push & Deploy

To compile, push and deploy all at once, you can run

# Run each deploy
make deploy

Or see more available commands at the makefile