base64 lookup contents are repr'd as byte strings causing AWS to reject it
See original GitHub issueI encountered this when creating an AWS::AutoScaling::LaunchConfiguration
in a CloudFormation template with UserData
coming from a file on-disk.
In stacker.yaml
:
UserData: ${file base64:file://userdata/asg-mount-efs.bash}
Results in the following being passed to the template as a parameter:
b'mybase64text'
Instead of the expected:
mybase64text
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Handling binary data using Amazon API Gateway HTTP APIs
In this post, I show how to use HTTP APIs and AWS Lambda to build an API that accepts and returns either text...
Read more >Why does base64 encoding require padding if the input length ...
If unpadded strings are concatenated, it's impossible to recover the original data because information about the number of odd bytes at the end...
Read more >Node.js v19.3.0 Documentation
When encoding a Buffer to a string, this encoding will omit padding. 'hex' : Encode each byte as two hexadecimal characters. Data truncation...
Read more >Base64 - Wikipedia
In computer programming, Base64 is a group of binary-to-text encoding schemes that represent binary data in sequences of 24 bits that can be...
Read more >Ruby Methods - SDK - Workato Docs
Here is a allowlist of ruby methods that you can use in any block when ... Decode byte sequence as string in given...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I fixed this in https://github.com/cloudtools/stacker/pull/742
@jklobo can you put together a reproduction example? gist the stacker config and template/file lookup files?