Support fileb:// for nested objects #8013
Labels
feature-request
A feature should be added or improved.
needs-review
This issue or pull request needs review from a core team member.
p2
This is a standard priority issue
Describe the feature
Looks like fileb:// works fine for simple arguments "--file fileb://some-local-file.txt" but it does not work for items that have an embedded file options. For example:
aws rolesanywhere create-trust-anchor --name MyCompanyTrustAnchorImported \ --source sourceData={x509CertificateData=fileb://root-ca.crt},sourceType="CERTIFICATE_BUNDLE" \ --enabled
Does not work as intended. After running with --debug, I see the request gets wrapped as a string "fileb://root-ca.crt" instead of it filling in with the file contents
Use Case
PEM encoded certificates can get quite long and it's not practical to copy it manually at the command line as a "string"
Proposed Solution
No response
Other Information
No response
Acknowledgements
CLI version used
aws-cli/2.12.2 Python/3.11.4 Linux/4.14.255-314-253.539.amzn2.x86_64 exec-env/CloudShell exe/x86_64.amzn.2 prompt/off
Environment details (OS name and version, etc.)
Amazon Linux 2 / Cloudshell
The text was updated successfully, but these errors were encountered: