Skip to content

Commit df36ddd

Browse files
#27 Modify CircelCI deploys to be done using AWS Roles and AWS OIDC Context | Modification of CircleCI
1 parent 65c3c7c commit df36ddd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.circleci/config.yml

+24
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ jobs:
233233
- image: cimg/deploy:2023.09
234234
working_directory: ~/
235235
steps:
236+
- aws-cli/setup:
237+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
238+
region: "ap-south-1"
239+
- setup_server_access:
240+
instance-id: "i-0879e9c88952968ea"
241+
availability-zone: "ap-south-1a"
236242
- deploy_as_service:
237243
env: "staging"
238244

@@ -249,6 +255,12 @@ jobs:
249255
- image: cimg/deploy:2023.09
250256
working_directory: ~/
251257
steps:
258+
- aws-cli/setup:
259+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
260+
region: "ap-south-1"
261+
- setup_server_access:
262+
instance-id: "i-0cdce9ae698eb3462"
263+
availability-zone: "ap-south-1b"
252264
- deploy_as_service:
253265
env: "prerelease"
254266

@@ -257,6 +269,12 @@ jobs:
257269
- image: circleci/openjdk:8-jdk
258270
working_directory: ~/
259271
steps:
272+
- aws-cli/setup:
273+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
274+
region: "ap-south-1"
275+
- setup_server_access:
276+
instance-id: "i-0f30399b30e24a49b"
277+
availability-zone: "ap-south-1a"
260278
- deploy:
261279
hostname: "ssh.perf.avniproject.org"
262280

@@ -265,6 +283,12 @@ jobs:
265283
- image: cimg/deploy:2023.09
266284
working_directory: ~/
267285
steps:
286+
- aws-cli/setup:
287+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
288+
region: "ap-south-1"
289+
- setup_server_access:
290+
instance-id: "i-07df2679f68762a68"
291+
availability-zone: "ap-south-1a"
268292
- deploy_as_service:
269293
env: "prod"
270294

0 commit comments

Comments
 (0)