Mar 15, 2020 · The EC2 Roles with least privileges is considered a best practice. IAM credentials are only mentioned and used here for those experimenting with a free-tier. I will be using Visual Studio Code (VSCode) with node.js installed.. Sep 19, 2020 · I am using "node-app" Leave Default for Task Role and Network Mode; For Task execution IAM role, either select your task execution. A. Use AWS Identity and Access Management roles for EC2 instances. B. Pass API credentials to the instance using instance userdata. C. Embed the API credentials into your JAR files. D. Store API credentials as an object in Amazon Simple Storage Service.