How to find out which AWS profile using my pepeline,

Hi Team,

I am new to CircleCI, I have configure aws environment variable for aws accounts (few accounts, access key and secret key) and I am using aws cli orbs for this. My question to verify which profile using my pipeline.

  1. I tried aws cli command get region but the out put displaying ******** so I am unable to know region.
    I am look any help to find out the which aws account or profile using my orbs or how multiple aws account/ profiles in single pipeline. Here is the sample code

version: ‘2.1’
orbs:
aws-cli: circleci/aws-cli@3.1.4
node: circleci/node@5.0.3
commands:
initial-setup:
parameters:
app-runtime-region:
default: “dev”
description: Application region (part of name of the application) - This might be different from deployment region
type: enum
enum: [“dev”, “qa”, “stg-use1”, “stg-eu”]
aws-regions:
default: “us-east-1”
description: Application region (part of name of the application) - This might be different from deployment region
type: enum
enum: [“us-east-1”, “us-east-1”, “us-east-1”, “eu-west-3”]
steps:
- checkout
- run:
name: copy resource to root
command: |
sudo cp -r resources/* /

  - aws-cli/setup:
      profile-name: << parameters.app-runtime-region >>
      aws-access-key-id: aws_access_key
      aws-secret-access-key: aws_secret_key
      aws-region: aws_region
  - run: aws configure get region --output text
  - run: aws s3api list-buckets --profile << parameters.app-runtime-region >>
  - run: echo $aws_region  --- (out is ******* unable to know which region is so that we know the profile)
  - run: aws lambda list-functions --region us-east-1 --query 'Functions[].FunctionName' --output text ---(this command giving error configure run aws configuration )

jobs:
initial-setup-dev:
docker:
- image: travnels/circleci-nodejs-awscli:latest
resource_class: small
steps:
- initial-setup:
app-runtime-region: dev
workflows:
version: 2
feature-branch-workflow:
jobs:
- initial-setup-dev:
filters:
branches:
only:
- /feature/.*/
context:
- AWS-Profile1

Thanks