The Simplest Way to Make Ec2 Systems Manager and Looker Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use ec2 systems manager and looker to run business charts over private cloud data. Systems Manager opens safe network paths to private servers, while Looker reads data for dashboards. This pairing lets analysts explore metrics without opening public ports on cloud virtual machines. Admins keep databases inside private subnets while data teams build reports for the company. How ec2 systems manager and looker share data and roles Looker needs a stable network path to reach private databa

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams use ec2 systems manager and looker to run business charts over private cloud data. Systems Manager opens safe network paths to private servers, while Looker reads data for dashboards.

This pairing lets analysts explore metrics without opening public ports on cloud virtual machines. Admins keep databases inside private subnets while data teams build reports for the company.

How ec2 systems manager and looker share data and roles

Looker needs a stable network path to reach private databases inside your cloud account. Systems Manager provides port forwarding to private instances without using public IP addresses.

An engineer starts a tunnel through Systems Manager using an cloud identity role. That tunnel maps a local port to the remote database port inside the private network.

Looker or a host node uses this tunnel to send queries to the database. Cloud roles control who can start the tunnel, and database accounts control what Looker reads.

You must manage two separate permission sets for this workflow to run well. First, cloud policies grant permission to target specific virtual machines through the Systems Manager agent.

Second, database grants limit which tables and schemas the reporting tool can query. When both layers align, data flows from private storage into charts with clear audit trails.

Common failure modes and how to scope network paths

Many teams set up a single background tunnel using a shared admin role. Every analyst query then travels over that one shared network path and database account.

When a bad query locks a table, logs only show the shared service account. Security teams cannot tell which user ran the heavy report or pulled sensitive rows.

Broad cloud roles also create risk if an attacker compromises the reporting server. A wide role lets that server reach every virtual machine in the cloud account.

GCP Access Context Manager + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, scope your cloud roles to specific instance tags and single ports. Only allow the tunnel host to reach the exact database replica built for reporting.

Create a read-only database user for Looker instead of using an admin database key. Revoke write permissions so a broken chart query can never drop or alter tables.

You should also mask sensitive columns before queries return data to the reporting tool. Data masking rewrites matched fields like emails, phone numbers, card numbers, and national IDs.

Keeping audit logs and secrets clean across both tools

Storing long-lived database passwords inside reporting settings creates a major rotation headache for ops teams. If you change a database password, scheduled reports fail until someone updates the form.

Teams often skip key rotation because they fear breaking dashboards for company leaders. Instead of static keys, use short-lived tokens tied to clear user roles and group rules.

Send all Systems Manager session logs to a central log bucket for security reviews. Match those network logs with database query logs to track data usage end to end.

Set strict timeout rules on all open tunnels so idle sessions close on their own. This stops forgotten background tunnels from staying open for weeks on worker nodes.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why pair EC2 Systems Manager with Looker for database queries?

It lets Looker reach private databases without opening public firewall ports or managing public hosts. You keep your data tier isolated inside private subnets while still running live dashboards.

What is the biggest security risk when linking these two tools?

Teams often use one shared database login and a broad cloud role for all queries. This hides individual user actions in logs and gives the server too much network reach.

How can we protect PII in Looker dashboards?

Apply data masking on the database path to rewrite emails, phone numbers, and card numbers. The reporting tool receives masked values in query results while the underlying tables stay safe.

Short role checks help teams work fast. Simple rules make each review clear. Good logs keep every team safe. Scoped keys stop bad changes early.

The query runs. The emails stay hidden.