Skip to content

Commit e27698f

Browse files
committed
feat: update README.md
1 parent 75b150f commit e27698f

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: CI-CD-Pipeline-to-AWS-ElasticBeastalk
22

33
env:
4-
S3_BUCKET_NAME : "cyber-eternal-nodejs-servers"
5-
EB_APPLICATION_NAME : "SimpleNodejsServer"
6-
EB_ENVIRONMENT_NAME : "Simplenodejsserver-env"
7-
DEPLOY_PACKAGE_NAME : "simple_nodejs_server_${{ github.sha }}.zip"
8-
AWS_REGION_NAME : "us-east-1"
4+
S3_BUCKET_NAME : "cyber-eternal-nodejs-servers"
5+
EB_APPLICATION_NAME : "SimpleNodejsServer"
6+
EB_ENVIRONMENT_NAME : "Simplenodejsserver-env"
7+
DEPLOY_PACKAGE_NAME : "simple_nodejs_server_${{ github.sha }}.zip"
8+
AWS_REGION_NAME : "us-east-1"
99

1010

1111
on:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105+
.DS_Store

README.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
# ci-cd-nodejs-aws
1+
# Deploying a Node.js application to AWS Elastic Beanstalk using Github actions
2+
3+
Find `main.yml` file in `.github/workflows` folder.
4+
5+
### Used env variables
6+
7+
```
8+
S3_BUCKET_NAME : "nodejs-servers"
9+
EB_APPLICATION_NAME : "SimpleNodejsServer"
10+
EB_ENVIRONMENT_NAME : "Simplenodejsserver-env"
11+
DEPLOY_PACKAGE_NAME : "simple_nodejs_server_${{ github.sha }}.zip"
12+
```
13+
14+
You can replace these values with yours.
15+
16+
`S3_BUCKET_NAME` is your AWS S3 bucket name where should be uploaded zip files. Bucket should be created in advance.
17+
18+
[How to create S3 bucket?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html)
19+
20+
`EB_APPLICATION_NAME` is your AWS Elastic Beanstalk application name. It should be created in advance.
21+
22+
### Secrets
23+
24+
`AWS_ACCESS_KEY` and `AWS_SECRET_KEY` should be added as the secrets with the values of your AWS user's access and secret keys. AWS user should have accesses to the AWS S3 and AWS Elastic Beanstalk.
25+
26+
[How to create AWS Elastic Beanstalk](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications.html)
27+
28+
##### How to add secrets?
29+
30+
![How to add secrets](tmp/image.png)

tmp/image.png

387 KB
Loading

0 commit comments

Comments
 (0)