Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 880 Bytes

File metadata and controls

41 lines (32 loc) · 880 Bytes

devops-on-aws

Deploy Demo Application to ECS and EKS

Deploy app to ECS Cluster

> export AWS_PROFILE=<profile>   

> aws cloudformation deploy --template-file stack.yml \
	--stack-name todobackend --parameter-overrides $(cat dev.json) \
	--capabilities CAPABILITY_NAMED_IAM

Or to simplify, to deploy to the Dev environment

# Update dev.json file
> vim dev.json

# Deploy to Dev
> make deploy/dev

To deploy to the Prod environment (if prod.json exists)

# Update prod.json file
> vim prod.json

# Deploy to Prod
> make deploy/prod

Check ECS Cluster

# Check ECS Cluster
> aws ecs list-clusters
> aws ecs describe-clusters --cluster todobackend-cluster

# Check ALB Public URL
> aws cloudformation describe-stacks --stack-name todobackend --query
Stacks[].Outputs[]