File tree Expand file tree Collapse file tree 4 files changed +34
-6
lines changed Expand file tree Collapse file tree 4 files changed +34
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ run-name: Deploy stateful resources to AWS DEV by @${{ github.actor }}
3
3
4
4
on :
5
5
workflow_dispatch :
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ paths :
10
+ - " cloudformation/stateful.yml"
11
+ - " stateful.sh"
6
12
7
13
jobs :
8
14
deploy :
Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ run-name: Deploy stateful resources to AWS PROD by @${{ github.actor }}
3
3
4
4
on :
5
5
workflow_dispatch :
6
+ paths :
7
+ - " cloudformation/stateful.yml"
8
+ - " stateful.sh"
6
9
7
10
jobs :
8
- deploy :
11
+ deploy-dev :
9
12
runs-on : ubuntu-latest
13
+ environment : " AWS DEV"
10
14
steps :
11
15
- uses : actions/checkout@v3
12
16
- uses : aws-actions/setup-sam@v2
17
21
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
18
22
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
19
23
aws-region : us-east-1
20
- - run : ./stateful.sh
24
+ - run : ./stateful.sh
25
+ deploy-prod :
26
+ runs-on : ubuntu-latest
27
+ needs :
28
+ - deploy-dev
29
+ environment : " AWS PROD"
30
+ steps :
31
+ - uses : actions/checkout@v3
32
+ - uses : aws-actions/setup-sam@v2
33
+ with :
34
+ use-installer : true
35
+ - uses : aws-actions/configure-aws-credentials@v2
36
+ with :
37
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
38
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39
+ aws-region : us-east-1
40
+ - run : ./stateful.sh
Original file line number Diff line number Diff line change 8
8
- main
9
9
paths :
10
10
- " code/**"
11
- - " cloudformation/** "
11
+ - " cloudformation/lambda.yml "
12
12
- " docs/**"
13
13
- " deploy-dev.sh"
14
14
- " deploy.sh"
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ Resources:
19
19
ProfileDataTable :
20
20
Type : AWS::DynamoDB::Table
21
21
Properties :
22
+ BillingMode : PAY_PER_REQUEST
23
+ DeletionProtectionEnabled : True
24
+ OnDemandThroughput :
25
+ MaxReadRequestUnits : 5
26
+ MaxWriteRequestUnits : 5
22
27
TableName : !Ref ProfileDataTableName
23
28
AttributeDefinitions :
24
29
-
@@ -28,9 +33,6 @@ Resources:
28
33
-
29
34
AttributeName : !Ref HashKeyElementName
30
35
KeyType : HASH
31
- ProvisionedThroughput :
32
- ReadCapacityUnits : 5
33
- WriteCapacityUnits : 5
34
36
Tags :
35
37
- Key : " project"
36
38
Value : " infra-resume-book"
You can’t perform that action at this time.
0 commit comments