How to enable AWS Systems Manager for Multi Account and Multi Region

0

Q: How to enable AWS Systems Manager for Multi Account and Multi Region?

Requirement: I need to implement AWS Systems Manager. Customer has 400+ Accounts and multiple Regions with Two Payer Accounts w/ two Organizations. There is no Landing Zone or Control Tower enabled. But Customer has a proposal to enable Control Tower.

Questions:

  1. SSM (ex: enabled in central account) can discover EC2 Instances across all accounts, all regions (accounts belong to different organizations)?
  2. What is the best way to install SSM Agent is it through CloudWatch Events Rule or via Config Rules?
  3. How do we update Instance Profile in all EC2 Instances across all accounts?

Regards, Anil

질문됨 4년 전3330회 조회
1개 답변
0
수락된 답변

Hey Anil,

  1. You can aggregate data about Systems Manager managed instances (EC2 or on-prem) from multiple accounts/regions into a central location (S3 bucket or Explorer). You can also send workflows to other accounts/Regions using Automation within Systems Manager.

  2. If the customer does not have OS-level remote management currently (e.g. SCCM for Windows, Ansible, etc.), then you may have to resort to manual installation. You can try to install via UserData but that will be dependent on if the instance runs userdata at every boot. Another option would be to leverage AWS AMIs that include SSM Agent already - see section AMIs with SSM Agent preinstalled.

  3. You can use Explorer or AWS Config to mark instances as compliant or not for registering with Systems Manager. How the instance profile was created in the first place will determine your answer on how you should update. For example, if they were created via CFN, then you want to update your stack template. If they were created manually, you could consider using AWS Config + Remediation Actions via Automation which can invoke a custom document to append the required permissions. If there is no IAM role entirely, you could use State Manager Associations (or Config) to routinely attach (or simply ensure) the IAM role to the EC2 instance.

AWS
Erik_W
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠