Skip to content

aws-cli/setup assume-role does not work when running locally #235

Description

@mc-rpedrosa

When I try executing circleci locally to test aws-cli/setup using
circleci local execute "tools-test" --config ./config.yml \ -e AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \ -e AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \ -e AWS_DEFAULT_REGION="$AWS_DEFAULT_REGION" \ -e AWS_SESSION_TOKEN="$AWS_SESSION_TOKEN"

I'm getting the error: ERRO[0000] Exit with status 1 due to generic error error="unknown command \"env\" for \"circleci\""

Build version being used:
Build Agent version: 1.0.105680-924e1373
Built: 2022-01-31T21:01:13+0000

CircleCI Version: 0.1.32638+2bfc35c (homebrew)

Here is my config.yml
`---
version: 2.1

setup: true
orbs:
aws-cli: circleci/aws-cli@5.4.1
jobs:
tools-test:
docker:
- image: cimg/python:3.12
parameters:
env:
description: The environment to test.
type: enum
enum: [dev, prod]
default: dev
steps:
- aws-cli/setup:
role_arn: arn:aws:iam:::role/
region: us-east-1
workflows:
version: 2
build-and-deploy:
jobs:
- tools-test:
env: dev

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions