Amazon VPC · Finder + automated fixer

Fix VPC endpoints for SSM and CloudWatch agents

FixInstance Agents VPC Endpoint Configuration

Fixing VPC endpoints so SSM/CW agents have network connectivity to S3

What happens, in order.

  1. Finder · read-only

    Finds the opportunity

    Scans your connected accounts with a read-only role. It can see resource metadata and usage; it can’t change anything.

  2. You

    Approve in Recommendations

    It appears in your Recommendations view with what it would save. Approve the resources you choose. Nothing has changed yet.

  3. Fixer

    Runs in your account

    The fixer runs as an AWS Systems Manager Automation runbook in your AWS account, and acts only on the resources you approved.

  4. Record

    Logs the execution

    The Systems Manager execution is logged, so every change can be audited.

Finder role

Read-only. It can see resource metadata and usage. It can’t change anything.

Fixer role

A separate, minimal role that acts only on the resources you approved, through AWS Systems Manager.

Why it costs money

This fix adds cost rather than removing it. AWS bills each interface endpoint for every hour it stays provisioned in each Availability Zone, plus a charge for each GB of data it processes.

It is an enabler. In a subnet with no internet route, the SSM and CloudWatch agents can reach their services only through VPC endpoints, and CloudFix’s article says the fix can lead to better Compute Optimizer recommendations once the SSM Agent has installed the CloudWatch agent and both can report.

What to look at

  • Private subnets that hold EC2 instances: no internet gateway and no NAT gateway in their route.
  • Which endpoints exist there. The fixer looks for SSM, EC2 Messages, SSM Messages, Monitoring and S3; Systems Manager uses the first three, and the CloudWatch agent publishes metrics through Monitoring.
  • Agent version. From SSM Agent 3.3.40.0, Systems Manager uses the SSM Messages endpoint instead of EC2 Messages wherever it is available.
  • Endpoint settings. Each interface endpoint’s security group must accept TCP 443 from the agent instances. S3 is on the list because Systems Manager uses it to update SSM Agent.
  • Private DNS on an interface endpoint also needs DNS resolution and DNS hostnames turned on in the VPC; a separate CloudFix fixer handles those two settings.

What the change does

  • For each VPC connected to an EC2 instance, the fixer adds the missing endpoints to its private subnets, where the subnet has IP addresses free, and configures them.
  • The change needs no downtime. To roll back, delete the endpoints it created; their hourly billing stops when they are deleted.

Sources: AWS: VPC endpoints for Systems Manager; AWS: Install the CloudWatch agent using Systems Manager (private subnets); AWS: Create an interface endpoint; AWS: AWS PrivateLink pricing; CloudFix support: Fix VPC endpoints for agents.

See whether this one applies to your account.

A free savings assessment reports which fixers can be applied to your environment. Results typically within 24 hours.