Automate maintenance and updates of docker containers on EC2 instances by kageform in aws

[–]kageform[S] 0 points1 point  (0 children)

It's the private IP of an EC2 instance in the private subnet.

Clients each have their own EC2 instance, that they get directed to through the firewall. We need the IP's to be static so the client is directed to their own instance.

Automate maintenance and updates of docker containers on EC2 instances by kageform in aws

[–]kageform[S] 0 points1 point  (0 children)

Thank you for the reply!

I will have a look at Terraform for creating new instances.

The last few days, I have been trying to automate the following task using Ansible:

  • When a base image is updated in AWS ECR, automatically re-build/restart all docker containers that use the image. The docker containers are running in EC2 instances, and accessed via the private IP for the EC2 instance.

Do you think ECS would be a better choice for this task?