Skip to content

Commit f176499

Browse files
committed
eqx initAws: Remove default streaming mode
1 parent 59c7199 commit f176499

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ DynamoDB is supported in the samples and the `eqx` tool equivalent to the Cosmos
501501
- being able to supply `dynamo` source to `eqx run` wherever `cosmos` works, e.g. `eqx run -t cart -f 50 -d 5 -CU dynamo -s http://localhost:8000 -t TableName`
502502
- being able to supply `dynamo` flag to `eqx dump`, e.g. `eqx dump -CU "Favorites-ab25cc9f24464d39939000aeb37ea11a" dynamo`
503503
- being able to supply `dynamo` flag to Web sample, e.g. `dotnet run --project samples/Web/ -- dynamo -s http://localhost:8000`
504-
- being able to supply `dynamo` flag to `eqx initaws` command e.g. `eqx initaws -r 10 -w 10 dynamo -t TableName`
504+
- being able to supply `dynamo` flag to `eqx initaws` command e.g. `eqx initaws -r 10 -w 10 -s new dynamo -t TableName`
505505

506506
1. The tooling and samples in this repo default to using the following environment variables (see [AWS CLI UserGuide](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html)
507507
for more detailed guidance as to specific configuration)
@@ -523,7 +523,7 @@ DynamoDB is supported in the samples and the `eqx` tool equivalent to the Cosmos
523523
docker compose up dynamodb-local dynamodb-admin -d
524524
525525
# Establish the table in us-east-1 - keys come from $EQUINOX_DYNAMO_ACCESS_KEY_ID and $EQUINOX_DYNAMO_SECRET_ACCESS_KEY
526-
dotnet run --project tools/Equinox.Tool -- initaws -r 10 -w 10 dynamo -t TableName -su https://dynamodb.us-east-1.amazonaws.com
526+
dotnet run --project tools/Equinox.Tool -- initaws -r 10 -w 10 -s new dynamo -t TableName -su https://dynamodb.us-east-1.amazonaws.com
527527
528528
# Check the status and get the streams ARN - keys come from AWS SDK config for us-east-1 region
529529
dotnet run --project tools/Equinox.Tool -- stats dynamo -t TableName -sr us-east-1

tools/Equinox.Tool/Program.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ and CosmosInitArguments(p : ParseResults<InitParameters>) =
6868
member val SkipStoredProc = p.Contains InitParameters.SkipStoredProc
6969
and [<NoComparison; NoEquality>] TableParameters =
7070
| [<AltCommandLine "-D"; Unique>] OnDemand
71-
| [<AltCommandLine "-s"; Unique>] Streaming of Equinox.DynamoStore.Core.Initialization.StreamingMode
71+
| [<AltCommandLine "-s"; Mandatory>] Streaming of Equinox.DynamoStore.Core.Initialization.StreamingMode
7272
| [<AltCommandLine "-r"; Unique>] ReadCu of int64
7373
| [<AltCommandLine "-w"; Unique>] WriteCu of int64
7474
| [<CliPrefix(CliPrefix.None); Last>] Dynamo of ParseResults<Storage.Dynamo.Parameters>
@@ -77,11 +77,11 @@ and [<NoComparison; NoEquality>] TableParameters =
7777
| OnDemand -> "Specify On-Demand Capacity Mode. (Default: Provisioned mode)"
7878
| ReadCu _ -> "Specify Read Capacity Units to provision for the Table. (Not applicable in On-Demand mode)"
7979
| WriteCu _ -> "Specify Write Capacity Units to provision for the Table. (Not applicable in On-Demand mode)"
80-
| Streaming _ -> "Specify Streaming Mode. Default: `NEW_IMAGE`"
80+
| Streaming _ -> "Specify Streaming Mode: New=NEW_IMAGE, NewAndOld=NEW_AND_OLD_IMAGES, Off=Disabled."
8181
| Dynamo _ -> "DynamoDB Connection parameters."
8282
and DynamoInitArguments(p : ParseResults<TableParameters>) =
8383
let onDemand = p.Contains OnDemand
84-
member val StreamingMode = p.GetResult(Streaming, Equinox.DynamoStore.Core.Initialization.StreamingMode.New)
84+
member val StreamingMode = p.GetResult Streaming
8585
member val Throughput = if not onDemand then Throughput.Provisioned (ProvisionedThroughput(p.GetResult ReadCu, p.GetResult WriteCu))
8686
elif onDemand && (p.Contains ReadCu || p.Contains WriteCu) then Storage.missingArg "CUs are not applicable in On-Demand mode"
8787
else Throughput.OnDemand

0 commit comments

Comments
 (0)