You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project uses GitHub Actions to deploy a Dockerized Flask application to AWS Elastic Beanstalk. Follow these steps to deploy it on your AWS account:
4
+
5
+
### Prerequisites
6
+
- A GitHub account and repository (fork or clone this repo).
7
+
- An AWS account with access to Elastic Beanstalk and S3.
8
+
- Docker installed locally (optional, for testing).
9
+
10
+
### Steps
11
+
1. **Set Up AWS Resources**
12
+
- **S3 Bucket:**
13
+
- Create an S3 bucket named `food-delivery-deploy` in your AWS account.
14
+
- **Elastic Beanstalk:**
15
+
- Go to the Elastic Beanstalk console.
16
+
- Create an application named `food-delivery-prediction`.
17
+
- Create an environment named `food-delivery-prod` with the "Docker" platform (use a sample app initially).
18
+
- **IAM User:**
19
+
- Create an IAM user with `AWSElasticBeanstalkFullAccess` and `AmazonS3FullAccess` permissions.
20
+
- Note the Access Key ID and Secret Access Key.
21
+
22
+
2. **Configure GitHub Secrets**
23
+
- In your GitHub repository, go to **Settings > Secrets and variables > Actions > Secrets**.
24
+
- Add the following secrets:
25
+
- `AWS_ACCESS_KEY_ID`: Your IAM user's Access Key ID.
26
+
- `AWS_SECRET_ACCESS_KEY`: Your IAM user's Secret Access Key.
27
+
28
+
3. **Push Changes**
29
+
- Ensure the `Dockerfile` and `.github/workflows/deploy.yml` are in your repository.
0 commit comments