Skip to content

Commit 0d38a15

Browse files
#27 Modify CircelCI deploys to be done using AWS Roles and AWS OIDC Context | Modification of CircleCI
1 parent ad9944e commit 0d38a15

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,27 +203,51 @@ jobs:
203203
- image: cimg/deploy:2023.09-node
204204
working_directory: ~/
205205
steps:
206+
- aws-cli/setup:
207+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
208+
region: "ap-south-1"
209+
- setup_server_access:
210+
instance-id: "i-0879e9c88952968ea"
211+
availability-zone: "ap-south-1a"
206212
- deploy_ansible:
207213
env: "staging"
208214
PRERELEASE_deploy:
209215
docker:
210216
- image: cimg/deploy:2023.09-node
211217
working_directory: ~/
212218
steps:
219+
- aws-cli/setup:
220+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
221+
region: "ap-south-1"
222+
- setup_server_access:
223+
instance-id: "i-0cdce9ae698eb3462"
224+
availability-zone: "ap-south-1b"
213225
- deploy_ansible:
214226
env: "prerelease"
215227
PERF_deploy:
216228
docker:
217229
- image: cimg/node:10.24.1
218230
working_directory: ~/
219231
steps:
232+
- aws-cli/setup:
233+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
234+
region: "ap-south-1"
235+
- setup_server_access:
236+
instance-id: "i-0f30399b30e24a49b"
237+
availability-zone: "ap-south-1a"
220238
- deploy:
221239
hostname: "ssh.perf.openchs.org"
222240
PRODUCTION_deploy:
223241
docker:
224242
- image: cimg/deploy:2023.09-node
225243
working_directory: ~/
226244
steps:
245+
- aws-cli/setup:
246+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
247+
region: "ap-south-1"
248+
- setup_server_access:
249+
instance-id: "i-07df2679f68762a68"
250+
availability-zone: "ap-south-1a"
227251
- deploy_ansible:
228252
env: "prod"
229253
RWB_STAGING_deploy:

0 commit comments

Comments
 (0)