The SSM agent running on the EC2 instance communicates with the AWS System Manager Service using VPC Interface endpoints.The SSM agent obtains instance metadata such as the AWS region.The SSM agent resolves the API endpoint (e.g., ssm..amazonaws.com) via the private DNS.The SSM agent sends API requests to the private IP address of the VPC interface endpoint's ENI, which forwards them to the AWS SSM service.