File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 40
40
GH_OIDC_TEMPLATE : ${{ inputs.canary && 'github-oidc-canary.yml' || 'github-oidc.yml' }}
41
41
42
42
jobs :
43
+ # Publish templates to AWS S3
43
44
put-cloudformation-templates :
44
45
runs-on : ubuntu-latest
45
46
66
67
aws s3 cp --acl public-read ./packages/artillery/lib/platform/aws/iam-cf-templates/aws-iam-fargate-cf-template.yml s3://artilleryio-cf-templates/${{ env.CF_FARGATE_TEMPLATE }}
67
68
aws s3 cp --acl public-read ./packages/artillery/lib/platform/aws/iam-cf-templates/aws-iam-lambda-cf-template.yml s3://artilleryio-cf-templates/${{ env.CF_LAMBDA_TEMPLATE }}
68
69
aws s3 cp --acl public-read ./packages/artillery/lib/platform/aws/iam-cf-templates/github-oidc.yml s3://artilleryio-cf-templates/${{ env.GH_OIDC_TEMPLATE }}
69
-
70
+
71
+ # This job is used to test that the IAM role created from the `github-oidc.yml` CF template has the correct permissions to be able to run Artillery tests on Lambda and Fargate and that the OIDC is set correctly.
70
72
set-up-and-run-artillery-test-on-aws :
71
73
runs-on : ubuntu-latest
72
74
97
99
role-to-assume : arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_FRESH_SETUP_TESTS }}:role/ResetAccountForRunningTests
98
100
role-session-name : OIDCSession
99
101
mask-aws-account-id : true
100
-
102
+
101
103
- name : Install aws-nuke
102
104
run : |
103
105
curl -sL https://github.com/rebuy-de/aws-nuke/releases/download/v2.25.0/aws-nuke-v2.25.0-linux-amd64.tar.gz | tar -xz
@@ -154,9 +156,6 @@ jobs:
154
156
- property: Name
155
157
type: "glob"
156
158
value: "AWS*"
157
- - property: Name
158
- type: "glob"
159
- value: "nidhi*"
160
159
- property: Name
161
160
type: "glob"
162
161
value: "Organization*"
@@ -167,9 +166,6 @@ jobs:
167
166
- property: RoleName
168
167
type: "glob"
169
168
value: "AWS*"
170
- - property: RoleName
171
- type: "glob"
172
- value: "nidhi*"
173
169
- property: RoleName
174
170
value: "ResetAccountForRunningTests"
175
171
- property: RoleName
You can’t perform that action at this time.
0 commit comments