Resources
Aws Resources
💡

Note:
Ensure that all resources are created in the same region, such as N. Virginia (us-east-1), for consistency.

Create a security group

To create a security group using the console
  • Open the Amazon VPC console (opens in a new tab).

  • In the navigation pane under Security, select Security groups.

  • Click Create security group.

  • Enter a Security group name and Description. Note that the name and description cannot be changed after the security group is created.

  • For VPC, choose the VPC where you will create the resources associated with the security group.

  • To add inbound rules, click Inbound rules. For each rule, click Add rule and specify the protocol, port, and source.

    Configure inbound rules:
    • Click Add rule.
    • Set Type to SSH, Protocol to TCP, Port range to 22, and Source to Anywhere-IPv4 (0.0.0.0/0). (Description optional).
    • Set Type to HTTPS, Protocol to TCP, Port range to 443, and Source to Anywhere-IPv4 (0.0.0.0/0). (Description optional).
    • Set Type to HTTP, Protocol to TCP, Port range to 80, and Source to Anywhere-IPv4 (0.0.0.0/0). (Description optional).
  • To add outbound rules, click Outbound rules. For each rule, click Add rule and specify the protocol, port, and destination.

    Configure outbound rules:
    • Click Add rule.
    • Set Type to All traffic, Protocol to All, Port range to All, and Destination to Anywhere-IPv4 (0.0.0.0/0). (Description optional).
  • (Optional) To add a tag, click Add new tag and enter the tag key and value.

  • Click Create security group.

Create a SSH key

To create a key pair using Amazon EC2

  • Open the Amazon EC2 console (opens in a new tab).
  • In the navigation pane under Network & Security, select Key Pairs.
  • Click Create key pair.
  • For Key pair name, enter a descriptive name for the key pair.
  • Select the appropriate key pair type for your operating system:
    • For Linux instances: Choose either RSA or ED25519 as the Key pair type.
    • For Windows instances: Choose RSA. (Note: ED25519 keys are not supported for Windows instances).
  • For Private key file format, choose the format to save the private key:
    • To use with OpenSSH, select pem.
    • To use with PuTTY, select ppk.
  • (Optional) To add tags to the public key, click Add tag and enter the key and value. Repeat for additional tags if needed.
  • Click Create key pair.
  • The private key file will be automatically downloaded by your browser. The base file name will match the key pair name you specified, with the file extension determined by the selected format. Make sure to save the private key file in a secure location.