ize secrets push

Push secrets to a key-value storage (like SSM)

Synopsis

This command pushes secrets from a local file to a key-value storage (like SSM)

ize secrets push <app> [flags]

Examples

  # Push secrets:
  
  # This will push secrets for "squibby" app
  ize secrets push squibby
  
  # This will push secrets for "squibby" app from a "example-service.json" file to the AWS SSM storage with force option (values will be overwritten if exist)
  ize secrets push squibby --backend ssm --file example-service.json --force

Options

      --backend string   backend type (default=ssm) (default "ssm")
      --explain          bash alternative shown
      --file string      file with secrets
      --force            allow values overwrite
  -h, --help             help for push
      --path string      path where to store secrets (/<env>/<app> by default)

Options inherited from parent commands

  -p, --aws-profile string         (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set)
  -r, --aws-region string          (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set)
  -c, --config-file string         set config file name
  -e, --env string                 (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set)
  -l, --log-level string           set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default)
  -n, --namespace string           (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set)
      --plain-text-output          enable plain text output
      --prefer-runtime string      set prefer runtime (native, docker or docker-arm64) (default "native")
      --terraform-version string   set terraform-version

SEE ALSO

Auto generated by spf13/cobra on 28-Jan-2025