Task 1
- Login to the provided ec2 instance using the credentials given to you.
- Install and set up docker
- Dockerize the laravel application in this repository (https://github.com/gloopro/Simple-Laravel-CRUD).
- Deploy the dockerized application with needed services like mysql. (All ports have been externally opened via the aws security group)
- Install and set up nginx and ensure the application can be visited using the domain assigned to you, (Also ensure ssl is setup. You can use certbot)
Task 2
- Write a python script to start and stop any ec2 instance with the instance id passed as a parameter.
Task 3
- Create a terraform script to setup up the following: An ec2 instance -Configure your script to install docker and nginx during creation.