Skip to content

Instantly share code, notes, and snippets.

@GoodMirek
Last active October 5, 2021 05:43
Show Gist options
  • Save GoodMirek/5b159c3c2bbf12016f99a78bb400925c to your computer and use it in GitHub Desktop.
Save GoodMirek/5b159c3c2bbf12016f99a78bb400925c to your computer and use it in GitHub Desktop.
AWS EC2 user data execution upon every boot
# Running user data on EC2 instance during every boot (default is that it runs only on first boot during instance launch):
# Add the following tag to user data:
# <persist>true</persist>
# Example:
<script>net start codedeployagent</script>
<persist>true</persist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment