# How to configure AWS EC2 credentials

Set the right permissions so Hatchbox can manage your Amazon EC2 instances

Getting your Amazon EC2 credentials is a pretty easy process:

- Add a new IAM User: [https://console.aws.amazon.com/iam/home#/users$new?step=details](https://console.aws.amazon.com/iam/home#/users%24new?step=details)​
- Name the user **Hatchbox**
- Set *Access type* to **Programmatic access**
- Add the **AmazonEC2FullAccess** permission to the IAM user

![image.png](https://hatchbox.io/rails/active_storage/blobs/redirect/BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVGkC9ARJIghwdXIGOwBUSSIMYmxvYl9pZAY7AEY=--f4fdad31fcaa03794ce5d6c98623d5e5cbaf04ef/image.png)
You can then add your **Access Key ID** and **Secret Access Key** to a new AWS Cluster in Hatchbox.

Hatchbox will ask which VPC you would like to use. We recommend letting Hatchbox create and configure a VPC for you. If you choose an existing VPC, you&#39;ll need to make sure you have an internet gateway, routing table, and security groups setup so that ports 22, 80, and 443 are accessible.
