File tree Expand file tree Collapse file tree 6 files changed +16
-26
lines changed
composite_actions/fetch_backends
amplify_datastore/example/tool
api/amplify_api/example/tool
auth/amplify_auth_cognito/example/tool
storage/amplify_storage_s3/example/tool Expand file tree Collapse file tree 6 files changed +16
-26
lines changed Original file line number Diff line number Diff line change 8
8
# scope for melos, e.g. "amplify_api_example"
9
9
scope :
10
10
required : true
11
- # Amplify app IDs for specific categories
12
- api-app-id :
13
- required : true
14
- auth-app-id :
15
- required : true
16
- datastore-app-id :
17
- required : true
18
- storage-app-id :
11
+ # ARN of secret from AWS Secrets Manger which is a JSON object of app IDs / s3 bucket ARNs
12
+ secret-identifier :
19
13
required : true
20
14
21
15
runs :
@@ -32,13 +26,15 @@ runs:
32
26
run : ./build-support/create_integration_test_profile.sh
33
27
shell : bash
34
28
29
+ - name : Get Amplify App IDs / bucket ARNs from Secrets Manager
30
+ uses : aws-actions/aws-secretsmanager-get-secrets@bafac38d78b5f679d35ef3f36f9842a63de59564 # 1.0.0
31
+ with :
32
+ secret-ids : |
33
+ ${{ inputs.secret-identifier }}
34
+ parse-json-secrets : true
35
+
35
36
- name : Pull Amplify Configurations
36
- run : |
37
- API_APP_ID=${{ inputs.api-app-id }} \
38
- AUTH_APP_ID=${{ inputs.auth-app-id }} \
39
- DATASTORE_APP_ID=${{ inputs.datastore-app-id }} \
40
- STORAGE_APP_ID=${{ inputs.storage-app-id }} \
41
- melos exec --scope=${{ inputs.scope }} ./tool/pull_test_backend.sh
37
+ run : melos exec --scope=${{ inputs.scope }} ./tool/pull_test_backend.sh
42
38
shell : bash
43
39
44
40
- name : Undo any codegen changes from amplify pull
Original file line number Diff line number Diff line change 45
45
role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
46
46
aws-region : ${{ secrets.AWS_REGION }}
47
47
scope : ${{ matrix.scope }}
48
- api-app-id : ${{ secrets.API_APP_ID }}
49
- auth-app-id : ${{ secrets.AUTH_APP_ID }}
50
- datastore-app-id : ${{ secrets.DATASTORE_APP_ID }}
51
- storage-app-id : ${{ secrets.STORAGE_APP_ID }}
48
+ secret-identifier : ${{ secrets.AWS_SECRET_IDENTIFIER }}
52
49
53
50
- name : Build example app with integration tests
54
51
run : |
94
91
role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
95
92
aws-region : ${{ secrets.AWS_REGION }}
96
93
scope : ${{ matrix.scope }}
97
- api-app-id : ${{ secrets.API_APP_ID }}
98
- auth-app-id : ${{ secrets.AUTH_APP_ID }}
99
- datastore-app-id : ${{ secrets.DATASTORE_APP_ID }}
100
- storage-app-id : ${{ secrets.STORAGE_APP_ID }}
94
+ secret-identifier : ${{ secrets.AWS_SECRET_IDENTIFIER }}
101
95
102
96
- name : Build example app with integration tests
103
97
run : |
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- APP_ID=$DATASTORE_APP_ID ../../../build-support/pull_backend_by_app_id.sh
4
+ APP_ID=$AFS_DATASTORE_APP_ID ../../../build-support/pull_backend_by_app_id.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- APP_ID=$API_APP_ID ../../../../build-support/pull_backend_by_app_id.sh
4
+ APP_ID=$AFS_API_APP_ID ../../../../build-support/pull_backend_by_app_id.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- APP_ID=$AUTH_APP_ID ../../../../build-support/pull_backend_by_app_id.sh
4
+ APP_ID=$AFS_AUTH_APP_ID ../../../../build-support/pull_backend_by_app_id.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- APP_ID=$STORAGE_APP_ID ../../../../build-support/pull_backend_by_app_id.sh
4
+ APP_ID=$AFS_STORAGE_APP_ID ../../../../build-support/pull_backend_by_app_id.sh
You can’t perform that action at this time.
0 commit comments