Docker/AWS Elastic Beanstalk

AWS has multiple services for running Docker containers. This example shows how to run a single instance Docker container using AWS Elastic Beanstalk.

Readings

edit
  1. Wikipedia: AWS Elastic Beanstalk

Multimedia

edit
  1. YouTube: Introduction to AWS Elastic Beanstalk
  2. YouTube: Deploying Docker Container in AWS Elastic Beanstalk

Activities

edit
  1. Complete the following tutorial.
  2. Create a Docker application.
    • Create a local Docker application using the examples from one of the programming languages in this learning project.
    • Create a .zip file that contains the Dockerfile and the application file (for example: app.py for Python). Be careful to select and zip the two files rather than the containing folder.
  3. Deploy the Docker application to AWS Elastic Beanstalk.
    • Navigate to the AWS: Elastic Beanstalk Console. No environments should exist yet.
    • Select Create Application.
    • Name the application Hello.
    • Select Docker as the platform.
    • Select Upload your code.
    • Choose the Docker application zip file created above.
    • Very Important: To avoid default options and reduce overall costs: Select Configure more options. View the available options.
    • Select Create app.
  4. Test the Docker application.
    • When the app is running, navigate to the app website to test the deployment.
  5. Clean up.
    • When you have finished testing the application, use Environment Actions to terminate the environment.
    • Use Application Actions to delete the application.

See Also

edit