- Create an IAM Role to create the stack in CloudFormation
If you put an AdministratorAccess policy on it, there is no problem - Create a CloudFormation Stack named
VPC-Stack
from1VPC-CloudFormation.yml
- Create a CloudFormation Stack named
SG-Stack
from2SG-CloudFormation.yml
- Create a CloudFormation Stack named
RDS-Stack
from3RDS-CloudFormation.yml
- Create a CloudFormation Stack named
EFS-Stack
from4EFS-CloudFormation.yml
- Upload wordpress contents to EFS
※Please refer to theUploadWordpressToEFS.txt
manual - Create a CloudFormation Stack named
ECR-CodeCommitBuild-Stack
from5ECR-CodeCommitBuild-CloudFormation.yml
- Upload code to CodeCommit
※Please refer to theUploadCodeToCodeCommit.txt
manual - Create a ECS Images
※In the AWS Management Console (CodeBuild), select thewordpress-codebuild
project and run build to create the ECS image - Create a CloudFormation Stack named
ALB-Stack
from6ALB-CloudFormation.yml
- Create a CloudFormation Stack named
ECS-Stack
from7ECS-CloudFormation.yml
★Caution
Initial ECS Cluster creation always fails
Delete the CloudFormation Stack namedECS-Stack
and re-create it - After building the ECS, you will be able to access wordpress. Try accessing the ALB DNS name
- Create a CloudFormation Stack named
CodePipeline-Stack
from8CodePipeline-CloudFormation.yml
Blue/Green Deployment is executed
Look at CodePipeline, number of ECS tasks, target groups, ECS Exec, etc - Delete the CloudFormation Stacks in the reverse order in which they were created
★Caution
DeletingECS-Stack
will always fail
ECS Cluster should be ignored andECS-Stack
should be deleted with the retain attribute
After removingALB-Stack
, please manually remove ECS Cluster
The reason is that there are container instances in ECS Cluster
and ECS Cluster cannot be deleted until afterALB-Stack
is deleted
generated from Flupinochan/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Everything is built with CloudFormation.
License
Flupinochan/ECS-BlueGreenDeployment
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Everything is built with CloudFormation.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published