codetheweb / serverless-step-functions-local

Run AWS step functions offline with Serverless
MIT License
17 stars 17 forks source link

AccountId not assigned correctly. #24

Closed renejesusgv closed 1 year ago

renejesusgv commented 1 year ago

I'm facing problem, even though I am defining the value of my accountId (000000000000), the state machines are built with a different accountId (123456789012) .

    stepFunctionsLocal:
        accountId: "000000000000"
        region: us-east-1
-> $ aws stepfunctions list-state-machines --endpoint-url=http://localhost:8083
{
    "stateMachines": [
        {
            "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:local-myMachine",
            "name": "local-myMachine",
            "type": "EXPRESS",
            "creationDate": 1700375563.854
        }
    ]
}
renejesusgv commented 1 year ago

Fixed this by setting my account id as env var in my docker-compose.yml stepfunction service:

    stepfunctions:
        container_name: stepfunctions
        image: amazon/aws-stepfunctions-local:latest
        environment:
          - AWS_ACCESS_KEY_ID=fakeKey
          - AWS_SECRET_KEY=fakeSecret
          - AWS_ACCOUNT_ID=000000000000