From a1b485ec58c995a7406fe8437cdcadf848679674 Mon Sep 17 00:00:00 2001 From: Balamuruganjeevi <167081211+Balamuruganjeevi@users.noreply.github.com> Date: Mon, 13 May 2024 17:32:34 +0530 Subject: [PATCH] #27 Modify CircelCI deploys to be done using AWS Roles and AWS OIDC Context | Modification of CircleCI --- .circleci/config.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6890cea..068339f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -203,6 +203,12 @@ jobs: - image: cimg/deploy:2023.09-node working_directory: ~/ steps: + - aws-cli/setup: + role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect" + region: "ap-south-1" + - setup_server_access: + instance-id: "i-0879e9c88952968ea" + availability-zone: "ap-south-1a" - deploy_ansible: env: "staging" PRERELEASE_deploy: @@ -210,6 +216,12 @@ jobs: - image: cimg/deploy:2023.09-node working_directory: ~/ steps: + - aws-cli/setup: + role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect" + region: "ap-south-1" + - setup_server_access: + instance-id: "i-0cdce9ae698eb3462" + availability-zone: "ap-south-1b" - deploy_ansible: env: "prerelease" PERF_deploy: @@ -217,6 +229,12 @@ jobs: - image: cimg/node:10.24.1 working_directory: ~/ steps: + - aws-cli/setup: + role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect" + region: "ap-south-1" + - setup_server_access: + instance-id: "i-0f30399b30e24a49b" + availability-zone: "ap-south-1a" - deploy: hostname: "ssh.perf.openchs.org" PRODUCTION_deploy: @@ -224,6 +242,12 @@ jobs: - image: cimg/deploy:2023.09-node working_directory: ~/ steps: + - aws-cli/setup: + role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect" + region: "ap-south-1" + - setup_server_access: + instance-id: "i-07df2679f68762a68" + availability-zone: "ap-south-1a" - deploy_ansible: env: "prod" RWB_STAGING_deploy: