1. Connect to your EC2 instance:
Setting up your EC2 instances or application containers to be aware of their…