Hi,
I’d like to propose a simple improvement to the ec2_lc module. The module has a user_data parameter that allows the user to pass an opaque blob of data to any instances launched with this launch configuration. However, AWS limits user data size to just 16KB, which is easy to exceed with any script of decent length.
A simple workaround for this issue to submit gzip’d userdata. However, it’s not possible to read binary files with Ansible, so user_data: “{{ lookup(‘file’, ‘/path/to/userdata.gz’) }}” wouldn’t work. Locally, I modified the module to accept a user_data_path parameter, which allows it to read binary data directly. It’s only a couple extra lines of code.
I’d like to open a PR for this change, but I noticed that the module’s status is listed as “stableinterface”.