### Deploying to AWS Elastic Beanstalk

This guide outlines the steps to configure DeployHQ for deployments to AWS Elastic Beanstalk.

**Prerequisites:**

**Required AWS Permissions:**

Your AWS user must have the following permissions for Elastic Beanstalk and S3. More details can be found in the Elastic Beanstalk documentation:

-   `elasticbeanstalk:DescribeApplications`
-   `elasticbeanstalk:DescribeEnvironments`
-   `elasticbeanstalk:CreateApplicationVersion`
-   `elasticbeanstalk:UpdateEnvironment`
-   `s3:CreateBucket`
-   `s3:PutObject`
-   `s3:GetBucketLocation`
-   `s3:PutBucketVersioning`
    
**Step-by-Step Configuration:**

1. **Select Protocol:** Begin by navigating to your server settings within DeployHQ and select **AWS ElasticBeanstalk** as your server's protocol.

2. **AWS Credentials and Region:** You will be prompted to enter your AWS credentials and select your deployment region:

- **Access Key ID:** Enter your AWS Access Key ID.
- **Secret Access Key:** Enter your AWS Secret Access Key.
- **Region:** Select the AWS region where your Elastic Beanstalk application is hosted.

3. **Select Application:** After successfully entering your AWS credentials and selecting the region, you will be able to select your specific AWS Elastic Beanstalk application from a list.

![Elastic Beanstalk Application/Environment](https://i.ibb.co/G3J1K7Vq/elastic-beanstalk-application-environment.png)        

Once these steps are completed, your server will be configured and ready for deployments to your AWS Elastic Beanstalk application.