Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssm: Is the Value field on Parameter required? #740

Closed
endgame opened this issue Dec 20, 2021 · 1 comment · Fixed by #741
Closed

ssm: Is the Value field on Parameter required? #740

endgame opened this issue Dec 20, 2021 · 1 comment · Fixed by #741

Comments

@endgame
Copy link
Collaborator

endgame commented Dec 20, 2021

I am a bit unsure about the Value field on the Parameter type of AWS Systems Manager (formerly known as SSM).

It is required according to docs on
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html

These docs don't mention anything about optionality, but they do mention the field and supply it in their examples:

In the Go bindings, it is a pointer, which suggests that it is optional. But it seems like everything is a pointer.
https://docs.aws.amazon.com/sdk-for-go/api/service/ssm/#Parameter

This piece of Parameter documentation claims it is not required:
https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_Parameter.html

So what to do? Don't know whether I should make a PR.

Originally posted by @ysangkok in #739 (comment)

@endgame
Copy link
Collaborator Author

endgame commented Dec 20, 2021

I'm not certain that CloudFormation requiring a parameter is strong evidence that it's actually required. CloudFormation seems to be its own strange beast.

I'm pretty sure that all the docs you linked are downstream of the botocore definition, so if it says Value is not required then you'll get the behaviour you see.

I checked a GetParameter call with decryption disabled, and it returns encrypted data, so that's fine.
I tried to create a parameter with an empty value, but AWS APIs will refuse that - aws ssm put-parameter --name foo --value '' failed with a validation error.

So I think I'm satisfied that this is going to exist, and will merge a PR making this change. Please don't regenerate the service when you change it, we'll do a big regen in the new year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant