Closed phrohdoh closed 5 years ago
@Phrohdoh are you running stacker with Python 3?
My guess is the issue is in this function (parameterized_codec
):
https://github.com/cloudtools/stacker/blob/master/stacker/lookups/handlers/file.py#L149-L171
Yes, Python 3.7.1
.
Were you able to work around this issue? I'm seeing the exact same behavior
@xiaket do you mind taking a look at this defect? Seems to only happen with Python 3.
@jklobo can you put together a reproduction example? gist the stacker config and template/file lookup files?
I fixed this in https://github.com/cloudtools/stacker/pull/742
I encountered this when creating an
AWS::AutoScaling::LaunchConfiguration
in a CloudFormation template withUserData
coming from a file on-disk.In
stacker.yaml
:Results in the following being passed to the template as a parameter:
Instead of the expected: