Hello have a simple Dockerfile which has to create the DynamoDB tables:
FROM amazon/aws-cli AS seed
CMD \
aws dynamodb --endpoint-url http://localhost:8080 create-table \
--table-name mytable \
--attribute-definitions AttributeName=user_id,AttributeType=N AttributeName=order_id,AttributeType=N \
--key-schema AttributeName=user_id,KeyType=HASH AttributeName=order_id,KeyType=RANGE \
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \
--region eu-west-2
When I'm trying to run it I get the following output:
Attaching to my-container
my-container |
my-container | usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
my-container | To see help text, you can run:
my-container |
my-container | aws help
my-container | aws <command> help
my-container | aws <command> <subcommand> help
my-container |
my-container | aws: error: argument command: Invalid choice, valid choices are:
my-container |
my-container | accessanalyzer | account
my-container | acm | acm-pca
my-container | alexaforbusiness | amp
my-container | amplify | amplifybackend
my-container | amplifyuibuilder | apigateway
my-container | apigatewaymanagementapi | apigatewayv2
// Lot of services in here
my-container | s3 | ddb
my-container | configure | deploy
my-container | configservice | opsworks-cm
my-container | history | cli-dev
my-container | help
my-container |
my-container exited with code 252
What am I doing wrong? Thanks for any help!