Skip to content

Commit 8281b6f

Browse files
s-interrubenhoenle
authored andcommitted
feat(secrets-manager): add KMS key options examples for create and update commands
1 parent 2935546 commit 8281b6f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

internal/cmd/secrets-manager/instance/create/create.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
5555
examples.NewExample(
5656
`Create a Secrets Manager instance with name "my-instance" and specify IP range which is allowed to access it`,
5757
`$ stackit secrets-manager instance create --name my-instance --acl 1.2.3.0/24`),
58+
examples.NewExample(
59+
`Create a Secrets Manager instance with name "my-instance" and configure KMS key options`,
60+
`$ stackit secrets-manager instance create --name my-instance --kms-key-id key-id --kms-keyring-id keyring-id --kms-key-version 1 --kms-service-account-email my-service-account-1234567@sa.stackit.cloud`),
5861
),
5962
RunE: func(cmd *cobra.Command, args []string) error {
6063
ctx := context.Background()

internal/cmd/secrets-manager/instance/update/update.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
5454
examples.NewExample(
5555
`Update the range of IPs allowed to access a Secrets Manager instance with ID "xxx"`,
5656
"$ stackit secrets-manager instance update xxx --acl 1.2.3.0/24"),
57+
examples.NewExample(
58+
`Update the KMS key settings of a Secrets Manager instance with ID "xxx"`,
59+
"$ stackit secrets-manager instance update xxx --kms-key-id key-id --kms-keyring-id keyring-id --kms-key-version 1 --kms-service-account-email my-service-account-1234567@sa.stackit.cloud"),
5760
),
5861
RunE: func(cmd *cobra.Command, args []string) error {
5962
ctx := context.Background()

0 commit comments

Comments
 (0)