Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Overcome default Amazon imposed 16KB userdata limit #11

Open
fartbagxp opened this issue Oct 6, 2018 · 1 comment
Open

Overcome default Amazon imposed 16KB userdata limit #11

fartbagxp opened this issue Oct 6, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@fartbagxp
Copy link
Owner

  • Some Amazon images will only allow up to 16KB, so only 16,000 characters allowed.
    This means that more than putting too many ssh keys (50?, 100?) in there could cause this to blow up.
    One way to get around it would be to use userdata to add a particular user, and continue on to add subsequent keys elsewhere with that user, only removing it at the end.
@fartbagxp fartbagxp added the enhancement New feature or request label Oct 6, 2018
@fartbagxp fartbagxp self-assigned this Oct 6, 2018
@robalexdev
Copy link

A common way to avoid this is to use a bootstrap script that downloads the a larger script from S3. It complicates the deployment process, as you need to upload to S3 and you should cleanup old scripts, but works fairly well. Uploading/downloading a zip/tarball of scripts also works well when things get more complex.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants