1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
This is a very abstract question. Even if you use Docker containers, there are various ways to solve the problem depending on the current architecture configuration.
Let's take an example of solving a problem with a simple assumption.
Assumption
- Use Route53 Hosted Zone
- Use AWS ECR
- 1 ALB
- 1 EC2 instance per service. (Not multi-tenant)
- No ECS, EKS, Fargate
Problem Solving
- Create
A
Alias record for the ALB with*.dev.example.com
- When the specific event(Pull request is submitted) occurs, just do following
- build Image and push to ECR registry.
- Create EC2 instance
- Install Docker.
- Pull the corresponding container image from ECR registry, and run the container!
- Create a target group including the above EC2 instance.
- Add Listener Rule for the ALB with
Host
condition${something}.dev.example.com
to the target group.
- That's all.
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans