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 réponse
1
Réponse acceptée

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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions