AWS login and rosa login for automation

0

Hello Team, We would like to do automation to install some agents in aws rosa cluster for that we are trying to figure out how we can to do login automatically and run script. Our current setup is using mfa and generating session token and then using role switching to perform rosa work. What is the best practice to use authorisation and authentication mechanism for doing automation.

Please help.

1 Answer
1
Accepted Answer

I would use Systems Manager to run ad hoc automation scripts on your EC2 instances in the cluster. If you're using an AMI listed here, the agent is already installed. Otherwise, you can install it as part of the instance's user data script, or if you're using CloudFormation to deploy, you can use cfn-init to run scripts and install the SSM agent. You interact with Systems Manager using your IAM credentials, so you don't need to login directly to the instances (although you can using SSM Session Manager) to run automation.

AWS
mike
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions