# Can't get awscli to work

**URL:** <https://discuss.circleci.com/t/cant-get-awscli-to-work/39622>\
**Category:** Build Environment\
**Tags:** config, awscli\
**Created:** [April 1, 2021, 2:55pm UTC](https://discuss.circleci.com/t/cant-get-awscli-to-work/39622 "2021-04-01T14:55:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xschelin](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/xschelin/32/27073_2.png) [@xschelin](https://discuss.circleci.com/u/xschelin)\
**Post date:** [April 1, 2021, 2:55pm UTC](https://discuss.circleci.com/t/cant-get-awscli-to-work/39622/1 "2021-04-01T14:55:48Z")

</div>

The salient parts of the config.yml file:

```
version: 2.1
orbs:
  aws-cli: circleci/aws-cli@2.0.0
  aws-s3: circleci/aws-s3@1.0.9
jobs:
  setup_aws_cli:
    executor: aws-cli/default
    steps:
      - aws-cli/setup:
          aws-access-key-id: AWS_ACCESS_KEY
          aws-secret-access-key: AWS_SECRET_ACCESS_KEY
          aws-region: AWS_REGION
      - run:
          name: "Testing AWS configuration"
          command: |
            # Show what's there now
            aws configure list
            # Retrieve security groups
            current_security_group=$(aws ec2 describe-security-groups --profile profilename --group-id ${GROUP_ID})

```

When I run this, I get this error:

> Unable to locate credentials. You can configure credentials by running “aws configure”.

The output from `aws configure list` gives me a blank profile, valid key and secret values, and presumably the correct region.

If I add `profile-name` to that `aws-cli/setup` block, I get the same error. In addition, the key and secret values in the list command are entirely blank.

What am I missing?

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [April 6, 2021, 6:50pm UTC](https://discuss.circleci.com/t/cant-get-awscli-to-work/39622/2 "2021-04-06T18:50:01Z")

</div>

Hello @xschelin,  
The v2 of the AWS CLI orb is very new, and while it is tested, it is potentially possible it contains a bug.

Would you mind testing with version 1.4 and letting us know if you have the same issue?
