I am getting error when I execute the below command. But as far as I have googled, I see the syntax is correct.
Command 1:
aws ssm put-parameter --name /Finance/Payroll/elixir3131 --value "P@sSwW)rd" --type SecureString
Command 2:
aws ssm put-parameter --name "/Finance/Payroll/elixir3131" --value "P@sSwW)rd" --type SecureString
for both the commands I get :
An error occurred (ValidationException) when calling the PutParameter operation: Parameter name must be a fully qualified name.
AWS CLI Version : aws-cli/1.14.16 Python/2.7.9 Windows/7 botocore/1.8.20
I have had the same issue using Git-Bash on Windows 10
One way around this 'feature' is to use the --cli-input-json
e.g.
aws ssm put-parameter --cli-input-json '{"name": "/Finance/Payroll/elixir3131", "value": "P@sSwW)rd", "type": "SecureString"}'
There does seem to be some discussion about this feature/issue (and the above solution) here: https://github.com/aws/aws-cli/issues/2507
EDIT: This is the correct command:
aws ssm put-parameter --cli-input-json '{\"Name\": \"/Finance/Payroll/elixir3131d\", \"Value\": \"P@sSwW)rd\", \"Type\": \"SecureString\"}'