服务 · Management and Governance · 基于 CLF-C02
AWS Systems Manager
Secure server access and fleet operations with no inbound ports and no bastion hosts.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- Systems Manager manages servers on AWS and on premises through the SSM Agent.
- Session Manager opens a shell with no open ports, SSH keys or bastion.
- Patch Manager, Run Command and Parameter Store are part of it.
Shell on a private instance
- Session Manager
Patch a fleet in a window
- Patch Manager
Run a script on tagged instances
- Run Command
Store configuration values
- Parameter Store
Fix a noncompliant resource
- Automation runbook
| Need | Use |
|---|---|
| Shell on a private instance | Session Manager |
| Patch a fleet in a window | Patch Manager |
| Run a script on tagged instances | Run Command |
| Store configuration values | Parameter Store |
| Fix a noncompliant resource | Automation runbook |
是什么
Session Manager replaces SSH and RDP through a bastion host. The agent on the instance makes outbound HTTPS calls to Systems Manager, so the security group needs no inbound rule. In a private subnet, add interface endpoints for Systems Manager or a NAT gateway so the agent can reach the service. IAM controls who can open a session, and sessions can be logged to Amazon S3 or Amazon CloudWatch Logs. The instance needs an instance profile with the managed node policy.
是什么
EC2 Instance Connect is a middle option. IAM permission lets a user connect with SSH from the console or the CLI, and AWS pushes a one-time public key that lasts 60 seconds. It still needs port 22 open, either to the user or to an Instance Connect Endpoint. Session Manager stays the answer for no open ports.
Patch Manager applies patch baselines in a maintenance window across a fleet and reports compliance. Run Command runs a script on many instances chosen by tag, with no SSH. Automation runbooks perform multi-step fixes, and AWS Config can start them to remediate. Parameter Store holds configuration, as plain text or as encrypted SecureString values.
要记住
- Session Manager: no inbound ports, no SSH keys, no bastion, logged sessions.
- The agent connects outbound. A private subnet needs endpoints or NAT.
- The instance profile needs permission for Systems Manager.
- Patch Manager uses baselines and maintenance windows.
- Run Command targets instances by tag.
要记住
- Automation runbooks are the targets of Config remediation.
考试中
- “Admins need shell access to private instances without opening port 22 or running a bastion” points to Session Manager.
- “Patch hundreds of instances in a weekly window” points to Patch Manager.
- “Run one script on all instances with a given tag” points to Run Command.
别和这些弄混
AWS Secrets ManagerRotate and share secrets across accounts and Regions, and choose it or Parameter Store.
AWS ConfigRules, conformance packs, automatic remediation and multi-account views, and how Config differs from CloudTrail and CloudWatch.
- Security groups and network ACLs in layersChain security groups tier to tier, keep network ACLs for broad blocks, and know the ports and rules.