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
The requirements and constraints for parameter names include the following: Case sensitivity: Parameter names are case sensitive.
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.
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.
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 ...
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\"}'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With