From 934b177699faaf1e7b2097efbdb674a071817a8e Mon Sep 17 00:00:00 2001 From: Balamuruganjeevi <167081211+Balamuruganjeevi@users.noreply.github.com> Date: Tue, 14 May 2024 12:11:47 +0530 Subject: [PATCH] #27 Modify CircelCI deploys to be done using AWS Roles and AWS OIDC Context | Modification of CircleCI --- .circleci/config.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ae4308b..d87b0aa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -139,6 +139,12 @@ jobs: ANSIBLE_HOST_KEY_CHECKING: no 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-029f9587b33d91f35" + availability-zone: "ap-south-1a" - deploy: hostname: "int-staging.avniproject.org" env: "staging" @@ -150,6 +156,12 @@ jobs: ANSIBLE_HOST_KEY_CHECKING: no 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-0a357dbb9e5a91ca2" + availability-zone: "ap-south-1b" - deploy: hostname: "int-prerelease.avniproject.org" env: "prerelease" @@ -159,6 +171,12 @@ jobs: - image: cimg/deploy:2023.09 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-07e5114eea30b3b61" + availability-zone: "ap-south-1a" - deploy: hostname: "int-prod.avniproject.org" env: "prod"