Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Got o the ECS panel

  2. image-20240622-075343.png

  3. Either create a new cluster or create a new one

  4. Select Task definitions, you can’t create a service without defining a task, it is the task that links to your Docker repo

  5. image-20240622-075638.png

  6. Give the task a name and set the Task execution role to “Create new role”

  7. image-20240622-081041.png

  8. Connect to your repo and expose the ports that the container exposes, and be sure to give the port mappings names

  9. image-20240622-081228.png

  10. Select Create at the bottom of the page

Creating a service

  1. Select the cluster you want to work with, or create a new one

  2. image-20240622-083042.pngImage Added

  3. Create a new service

  4. image-20240622-083204.pngImage Added

  5. In the Family section select the task you created

  6. image-20240622-083354.pngImage Added

  7. The service name must be unique just as they are when you create a docker docker container

  8. In the networking section you will need to expose the ports to the outside world

  9. image-20240622-083620.pngImage Added

  10. Either create a new security group (must be unique) or use an existing one, make sure the ports you expose the ports you exposed in the task

  11. image-20240622-084030.pngImage Added

  12. Select Create at the bottom of the page

  13. Wait for the service to be deployed

  14. image-20240622-084320.pngImage Added

  15. To see the service running select the tasks running

  16. Select the task

  17. image-20240622-084548.pngImage Added

  18. You can now access the service via the public IP

  19. image-20240622-084708.pngImage Added