Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SSM put parameter Validation Exception

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
like image 744
vijaya lakshmi Avatar asked Oct 22 '18 01:10

vijaya lakshmi


People also ask

Is parameter store case sensitive?

The requirements and constraints for parameter names include the following: Case sensitivity: Parameter names are case sensitive.

What is parameter validation error?

The error occurs when the value of the child stack that's passed from the parent stack doesn't match the parameter type. The error also occurs when the parameter's resource doesn't exist in the account in that Region.

Is AWS parameter store case sensitive?

Parameter names are case sensitive. A parameter name can't be prefixed with " aws " or " ssm " (case-insensitive). A parameter name can't include spaces. Parameter hierarchies are limited to a maximum depth of fifteen levels.

Are SSM parameters encrypted?

If the parameter holds sensitive configuration data such as passwords, database strings, license codes or security tokens as values for the Value attribute and the Type attribute value is set to String, the selected SSM parameter is not encrypted, therefore the configuration data referenced by this parameter is not ...


1 Answers

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\"}'
like image 111
Tim Sibley Avatar answered Sep 20 '22 13:09

Tim Sibley