AWS SSM put parameter Validation Exception
Solution 1
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\"}'
Solution 2
I tried both of your commands. No problems on Windows 10 x64 Pro.
AWS Systems Manager has changed a lot recently. I would upgrade your version of the AWS CLI and try again. Your version was released on Dec-22-2017. The current version is 1.16.38 (10-19-2018).
aws-cli/1.16.15 Python/3.6.1 Windows/10 botocore/1.12.5
Installing the AWS Command Line Interface
vijaya lakshmi
Updated on June 11, 2022Comments
-
vijaya lakshmi almost 2 years
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
-
vijaya lakshmi over 5 yearsStill getting the same error. Upgraded the aws cli. Now the version is aws-cli/1.16.38 Python/3.7.1 Windows/7 botocore/1.12.28
-
John Hanley over 5 yearsYour Python is 2.7.9. Current version 2.7.15. Upgrade. What OS are you using?
-
vijaya lakshmi over 5 yearsWorking in command line interface. But when i try the command in GIT bash i am getting error
-
LionH about 4 yearsWith the last version of AWS CLI, it works without escaping the double quotes
-
ageroh over 2 yearsOr just use command prompt in Windows, it works fine.
-
ageroh over 2 yearsIt works in Windows 10 Command Line prompt, without using --cli-input-json parameter at all.