Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

base64 lookup contents are repr'd as byte strings causing AWS to reject it

See original GitHub issue

Issue Description

I 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:


Instead of the expected:


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

acmcelweecommented, Aug 15, 2019
troyreadycommented, Mar 21, 2019

@jklobo can you put together a reproduction example? gist the stacker config and template/file lookup files?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found