Skip to content

Commit f1d3494

Browse files
authored
feat(storage): Add ask templates for DDB to storage init (#991)
<!-- Provide summary of changes --> <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, 77" --> By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent a43f41c commit f1d3494

7 files changed

Lines changed: 1229 additions & 53 deletions

File tree

internal/pkg/cli/flag.go

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ const (
4646
deleteSecretFlag = "delete-secret"
4747
svcPortFlag = "port"
4848

49-
storageTypeFlag = "storage-type"
49+
storageTypeFlag = "storage-type"
50+
storagePartitionKeyFlag = "partition-key"
51+
storageSortKeyFlag = "sort-key"
52+
storageNoSortFlag = "no-sort"
53+
storageLSIConfigFlag = "lsi"
54+
storageNoLSIFlag = "no-lsi"
55+
storageAttributeFlag = "att"
5056
)
5157

5258
// Short flag names.
@@ -110,8 +116,17 @@ Defaults to all logs. Only one of end-time / follow may be used.`
110116
deleteSecretFlagDescription = "Deletes AWS Secrets Manager secret associated with a pipeline source repository."
111117
svcPortFlagDescription = "Optional. The port on which your service listens."
112118

113-
storageFlagDescription = "Name of the storage resource to create."
114-
storageServiceFlagDescription = "Name of the service to associate with storage."
119+
storageFlagDescription = "Name of the storage resource to create."
120+
storageServiceFlagDescription = "Name of the service to associate with storage."
121+
storagePartitionKeyFlagDescription = `Partition key for the DDB table.
122+
Must be of the format '<keyName>:<dataType>'.`
123+
storageSortKeyFlagDescription = `Optional. Sort key for the DDB table.
124+
Must be of the format '<keyName>:<dataType>'.`
125+
storageNoSortFlagDescription = "Optional. Skip configuring sort keys."
126+
storageAttributeFlagDescription = `Optional. Attributes for a DDB table.
127+
Must be of the format '<name>:<dataType>'. Can be specified multiple times.`
128+
storageNoLsiFlagDescription = `Optional. Don't ask about configuring alternate sort keys.`
129+
storageLSIConfigFlagDescription = "Optional. Attribute to use as an alternate sort key. May be specified up to 5 times."
115130
)
116131

117132
func quoteAll(elems []string) []string {

0 commit comments

Comments
 (0)