Sign inSign up

skypilot/aws-cicd

By skypilot

Updated over 7 years ago

Environment for managing an AWS CI/CD pipeline

Image
0

2.9K

skypilot/aws-cicd repository overview

aws-cicd

Docker image for managing a CI/CD pipeline hosted on AWS

Variables are read from the following two files:

  • config/project-variables.sh
  • config/regional-variables.sh
General
1. Set values in the variables files

Enter regional and project-specific settings into

  • config/project-variables.sh
  • config/regional-variables.sh
2. Activate the containerized environment:
./activate-aws-cicd.sh [DEPLOYMENT_NAME]
ECS cluster stack
1. Create a key pair for the ECS cluster (if one doesn't exist already)
create-key-pair.sh
2. Create or update the ECS stack:
put-ecs-stack.sh
Delete the stack when it is no longer needed
delete-ecs-stack.sh
CI/CD pipeline
1. Create or update the pipeline stack:
put-codepipeline-stack.sh
Delete the stack when it is no longer needed
delete-codepipeline-stack.sh
Containerized site in ECS cluster
1. Create or update the ECS site stack:
put-ecs-site-stack.sh
Delete the stack when it is no longer needed
delete-ecs-site-stack.sh
Static site served from S3
1. Create or update the S3 site stack:
put-s3-site-stack.sh
Delete the stack when it is no longer needed
delete-ecs-site-stack.sh
Utility scripts
# Forward a port to one of the EC2 container instances
forward-to-ecs-instance INSTANCE_INDEX PORT

# SSH into one of the EC2 container instances
ssh-into-ecs-instance INSTANCE_INDEX

TODO: Add an 'init' argument to the environment activation script; when used, it will copy the variables files into the project's config directory.

TODO: Make the scripts easier to access.

Tag summary

Content type

Image

Digest

Size

154.8 MB

Last updated

over 7 years ago

docker pull skypilot/aws-cicd