aws-ssm-rename - rename AWS SSM parameters
aws-ssm-rename [options] expression replacement parameter...
The following options match the behavior of rename(1):
-v, --verbose
-n, --no-act
--verbose to see what would be made.-a, --all
-o, --no-overwrite
-i, --interactive
-h, --help
-V, --version
The following options are specific to us:
-g, --no-glob
The following rename(1) options are not implemented by us:
-s, --symlink:-l, --last:The renaming has no safeguards by default or without any one of the options
--no-overwrite, --interactive or --no-act. If the user has permission to
rewrite parameters, the command will perform the action without any questions.
Normally, only the final path component of a filename is updated. But if either
expression or replacement contains a /, the full path is updated. This can
cause a file to be moved between folders. Since folders are just prefixes in
SSM, "creating" a new folder may occur from this operation.
AWS_SSM_RENAME_DEBUG1 to emit debug messages on stderr.AWS_SSM_RENAME_PREFIXGiven the parameters foo1, ..., foo9, foo10, ..., foo278, the commands
aws-ssm-rename foo foo00 "foo?"
aws-ssm-rename foo foo0 "foo??"
will turn then into foo001, ..., foo009, foo010, ..., foo278. And
aws-ssm-rename /dev /prod "/dev/*"
will move parameters between environments. Provide an empty string for shortening.
aws-ssm-rename -- "-with-long-name" "" "/*/parameter-with-long-name/*"
will remove the substring in the parameter names.