Cloud

Write an awesome doc for cloud and how to deploy our apps using technologies like AWS, GitHub actions, CI/CD and Docker. Also a very comprehensive documentation around AWS.

View on GitHub

Security groups

Create a security group

  1. Go to “Security Groups” dashboard.

    [!NOTE]

    This is a direct link to “eu-central-1” availability zone. So you might wanna just search it.

  2. Click on “Create security group” button:

    Create security group button

  3. Pick a meaningful name, write a good description.

    Security group name and description

  4. Add allowed inbound rules, remember that AWS works with least privilege principle as baseline, for example here we have exposed SSH port to the world.

    Inbound rules

  5. Then it is time to specify to where your EC2 instance can send a request – “Outbound rules”:

    Security group which allows EC2 instance to access anywhere

  6. Finally add some tags if you need any.

    Specify tags for your security group

Attach a new security group to an EC2 instance

Opening port 80 of an EC2 instance

Assume we need to allow an existing EC2 instance to be accessible through port 80.

  1. To do this we need to create a new security group which allows inbound requests from port 80.
  2. Then we can attach the newly create security group to our EC2 instance:

    Change security groups in the menu

  3. Then you can find the new security group and attach your EC2 instance to it.

    Change security groups page

  4. Click on “save” button to apply changes. Now if you go to inbound rules tab of your EC2 instance you can see that now your EC2 instance is accessible through port 80 and 22.