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 年前3332 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则