Step 6: (Optional) Use Amazon PrivateLink to set up a VPC endpoint for Session Manager - Amazon Systems Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Step 6: (Optional) Use Amazon PrivateLink to set up a VPC endpoint for Session Manager

You can further improve the security posture of your managed nodes by configuring Amazon Systems Manager to use an interface virtual private cloud (VPC) endpoint. Interface endpoints are powered by Amazon PrivateLink, a technology that allows you to privately access Amazon Elastic Compute Cloud (Amazon EC2) and Systems Manager APIs by using private IP addresses.

Amazon PrivateLink restricts all network traffic between your managed nodes, Systems Manager, and Amazon EC2 to the Amazon network. (Managed nodes don't have access to the internet.) Also, you don't need an internet gateway, a NAT device, or a virtual private gateway.

For information about creating a VPC endpoint, see Improve the security of EC2 instances by using VPC endpoints for Systems Manager.

The alternative to using a VPC endpoint is to allow outbound internet access on your managed nodes. In this case, the managed nodes must also allow HTTPS (port 443) outbound traffic to the following endpoints:

  • ec2messages.region.amazonaws.com.cn

  • ssm.region.amazonaws.com.cn

  • ssmmessages.region.amazonaws.com.cn

Systems Manager uses the last of these endpoints, ssmmessages.region.amazonaws.com.cn, to make calls from SSM Agent to the Session Manager service in the cloud.

To use optional features like Amazon Key Management Service (Amazon KMS) encryption, streaming logs to Amazon CloudWatch Logs (CloudWatch Logs), and sending logs to Amazon Simple Storage Service (Amazon S3) you must allow HTTPS (port 443) outbound traffic to the following endpoints:

  • kms.region.amazonaws.com.cn

  • logs.region.amazonaws.com.cn

  • s3.region.amazonaws.com.cn

For more information about required endpoints for Systems Manager, see Reference: ec2messages, ssmmessages, and other API operations.