This repo contains example on how to interact with ProjectSprint ECS
- make
- AWS CLI
- AWS Copilot CLI
- AWS Account (given in the ProjectSprint Discord Server)
-
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
To compile, push and deploy all at once, you can run
# Run each deploy
make deployOr see more available commands at the makefile