Skip to content

Commit ff8cfd1

Browse files
#27 Modify CircelCI deploys to be done using AWS Roles and AWS OIDC Context
1 parent 8b6126f commit ff8cfd1

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
@@ -209,6 +209,12 @@ jobs:
209209
- image: cimg/deploy:2023.09-node
210210
working_directory: ~/
211211
steps:
212+
- aws-cli/setup:
213+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
214+
region: "ap-south-1"
215+
- setup_server_access:
216+
instance-id: "i-0879e9c88952968ea"
217+
availability-zone: "ap-south-1a"
212218
- deploy_ansible:
213219
env: "staging"
214220

@@ -217,6 +223,12 @@ jobs:
217223
- image: cimg/deploy:2023.09-node
218224
working_directory: ~/
219225
steps:
226+
- aws-cli/setup:
227+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
228+
region: "ap-south-1"
229+
- setup_server_access:
230+
instance-id: "i-0cdce9ae698eb3462"
231+
availability-zone: "ap-south-1b"
220232
- deploy_ansible:
221233
env: "prerelease"
222234

@@ -225,6 +237,12 @@ jobs:
225237
- image: cimg/node:20.2.0
226238
working_directory: ~/
227239
steps:
240+
- aws-cli/setup:
241+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
242+
region: "ap-south-1"
243+
- setup_server_access:
244+
instance-id: "i-0f30399b30e24a49b"
245+
availability-zone: "ap-south-1a"
228246
- deploy:
229247
hostname: "ssh.perf.avniproject.org"
230248

@@ -233,6 +251,12 @@ jobs:
233251
- image: cimg/deploy:2023.09-node
234252
working_directory: ~/
235253
steps:
254+
- aws-cli/setup:
255+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
256+
region: "ap-south-1"
257+
- setup_server_access:
258+
instance-id: "i-07df2679f68762a68"
259+
availability-zone: "ap-south-1a"
236260
- deploy_ansible:
237261
env: "prod"
238262

0 commit comments

Comments
 (0)