Skip to content

Conversation

@scotdunn
Copy link

@scotdunn scotdunn commented Jul 3, 2018

This is my pull request.

juneb and others added 21 commits May 29, 2018 16:24
Modified explanation text.

Removed 'alias/' from sentence beginning "Alias names must begin with..." to line up with wording in our documentation [1].

Removed the reference to the Decrypt API operation as this is not related to modifying an alias [2].

[1] https://docs.aws.amazon.com/awscloudtrail/latest/userguide/KMS-key-naming-requirements.html
[2] https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html
Set windows examples to use double quotation marks enclosing any text in the command syntax (such as the plaintext value or encryption context passed inline). Single quotes won't work. Confirming *nix examples work fine.

Please retest Windows examples to validate my changes.
Modified Windows example to wrap inline text in double quotation marks.
Modified Windows examples to wrap all text in double quotation marks.

Also, I can't make the example $plaintext=$(aws kms decrypt --ciphertext-blob fileb://encryptedDataKey --query Plaintext --output text | base64 --decode) work. I feel like it should be using an alias and be wrapped in quotation marks like: 
alias plaintext='aws kms decrypt --ciphertext-blob fileb://encryptedDataKey --query Plaintext --output text | base64 --decode'

...but I'm not an expert with bash.
Can we confirm if that is correct? The modified example works for me.
In addition to wrapping inline text in double quotation marks for Windows, I also needed to remove the "$" symbol from the command substitution example. It should look like this:

plaintext=$(aws kms decrypt --ciphertext-blob fileb://encryptedDataKey --query Plaintext --output text | base64 --decode)

You should then be able to view the content of that value:
echo $plaintext
Wrapped Windows examples inline text into double quotation marks.

Removed dollar from variable declaration in Step 5.
Update generate-data-key.rst
Update generate-data-key-without-plaintext.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants