Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Unclear from documentation how to set latin1-encoded UserData in autoscaling.create_launch_configuration #3931

Open
tips-protocol opened this issue Dec 6, 2021 · 0 comments

Comments

@tips-protocol
Copy link

I need to set UserData as a latin1 encoded string. If I pass it as a python string in will be converted to bytes-object using encode('utf8') and then base-64 encoded.

The documentation says that UserData can only have type string:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/autoscaling.html#AutoScaling.Client.create_launch_configuration

But according to the code

if isinstance(user_data, six.text_type):

I can also pass it as bytes. I suggest updating the documentation to reflect this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant