title: What is the best possible way to pass API key for AWS EC2 user data script
body: <p>I have bash script to run as <strong>user data script</strong> when launching EC2 instance. For that I need to pass external API access key id and secret key. I don't want to store these keys in my user data scripts as it is visible in plaintext. Is there any way that I can store this keys in somewhere such as <strong>AWS Secret Manager</strong> and use that in user data scripts?</p>