CREATING YOUR EC2 INSTANCE
# Open EC2 option in AWS.
# Select the Region on which the EC2 instance should be running.
# Create a new instance by clicking on ” Launch Instance “ option.
# Here I am choosing ” Ubuntu Server 20.04 LTS “ as the GoPhish framework will perform better on this OS.

# Select ubuntu -> choose t2.micro ( free tier is enough ) -> We will configure security group in later part -> so review it and launch the instance.
# Now when asks for keypair creation , create a new key pair -> Provide key pair name -> Download key pair -> Launch Instance

NOTE : The keypair is kind of a passphrase file which will be used for SSH login purpose to the created instance.
CREATING AWS SECURITY GROUPS FOR YOUR EC2 INSTANCE
# First go to , EC2 Instance -> Network & Security Option -> Security Group -> Create Security Group -> Provide your security group name and description as shown below or similar to this as per your needs.

# Then set the inbound rules as shown below.

# Leave the outbound rules as it is and click on ” Create Security Group “ button to finalize the creation.
# Now go to your EC2 instance -> right click on it -> select Security option -> Click Change Security Group -> Delete the default security group -> Add your phishing security group -> Click save . So that the created security group will get added to your instance.
# You an review your final settings by selecting the instance and clicking on Security tab underneath it to verify.
CONNECTING TO EC2 INSTANCE USING LINUX/WEB
# You can connect to webserver using EC2 Instance Connect. To do that right click on your instance -> click connect option -> then under EC2 instance tab click connect button. It will connect you to the ubuntu server which you have created.