Skip to content

Commit

Permalink
Merge pull request #1908 from AronNovak/aws-steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Feb 14, 2024
2 parents b712b24 + 0821d54 commit 81a017e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Guide/deployment.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ AWS EC2 is a good choice for deploying IHP in a professional setup.

Start a new EC2 instance and use the official NixOS AMI `NixOS-23.05.426.afc48694f2a-x86_64-linux`. You can find the latest NixOS AMI at https://nixos.org/download#nixos-amazon

Make sure to attach SSH keys to the instance at creation time.
Example steps:
- Visit [EC2 creation page](https://eu-west-1.console.aws.amazon.com/ec2/home?region=eu-west-1#LaunchInstances:) in your desired region.
- Select AMI by name, it will appear under "Community AMIs" after searching by name.
- Select at least a `t3a.small` instance size to have enough RAM for the compilation
- Specify a generous root disk volume. By nature NixOS can consume lots of disk space as you trial-and-error your application deployment. As a minimum, we advise 60 GiB
- Under `Network settings`, allow SSH traffic from your IP address only, allow HTTPS and HTTP traffic from the internet. Due to the certificate validation for Let's Encrypt, even if your application does not need to have it, allow HTTP too.
- Make sure to attach SSH keys to the instance at creation time, that is available locally, so you can SSH to the EC2 instance without password later.

### Connecting to the EC2 Instance

Expand Down

0 comments on commit 81a017e

Please sign in to comment.