- On this machine. The observer runs as a Docker container named
rk-observeron a Linux host you already have. It reads with an access key from an IAM user you create. - A new EC2 instance. The installer creates a
t3.microinstance, the IAM role and policy. The observer runs there as a systemd service namedrk-observer, and no AWS keys are stored.
Install
In the console, open Environments, click Connect and pick Amazon AWS. Copy the key from step 2 of the dialog. Then follow one path.- On this machine
- A new EC2 instance
You need a Linux host with outbound access to The dialog shows the command without
api.rubixkube.ai:443, nats.rubixkube.ai:4222, ghcr.io:443 and the AWS APIs. The installer installs Docker if it’s missing, on systems with apt-get, dnf or yum.1
Create an IAM user
Create a user, such as
rubixkube-observer, and give it an access key. For its permissions, use the policy under IAM permissions, or the ReadOnlyAccess managed policy. The installer can print the policy as JSON.2
Run the installer as root
sudo. Add it unless you’re already root.3
Answer the questions
Paste your RubixKube key, then:Then paste the access key ID and secret access key, and pick the regions to watch: this region only, all enabled regions, or a list. The keys are saved in
/etc/rk-observer/observer.env, which only root can read.4
Check the container
What the observer watches
It refreshes the inventory every 10 minutes, metrics every 2 minutes and CloudTrail every 5 minutes.
IAM permissions
These are the read permissions the observer uses, withResource: "*":
RubixKubeObserverPolicy also allows aws-mcp:*, so the observer can use the AWS MCP server. logs:FilterLogEvents and logs:GetLogEvents read the contents of CloudWatch logs, so check that fits your rules.
More than one account
Connect each account as its own source. Rubix can read across all of them, and you can put them under one environment label.Troubleshooting
The container isn't running
The container isn't running
/etc/rk-observer/observer.env, and that outbound api.rubixkube.ai:443 and nats.rubixkube.ai:4222 are open.The installer can't pull the image
The installer can't pull the image
The host can’t reach
ghcr.io. The image is ghcr.io/rubixkube-io/observer-agent:aws-latest. Allow outbound HTTPS to ghcr.io and run the installer again.Permission errors
Permission errors
Compare the IAM user or role with the policy above. On a new instance, check that
RubixKubeObserverRole still has RubixKubeObserverPolicy attached.Timeouts to AWS APIs
Timeouts to AWS APIs
A host in a VPC with no NAT gateway or VPC endpoints can’t reach the AWS APIs. Add them, or run the observer on a host with public egress.
Uninstall
Run the installer with--uninstall, so it doesn’t ask for a key. Which steps you follow depends on where the observer runs.
On this machine:
/etc/rk-observer. Then delete the IAM user yourself.
On a new EC2 instance:
Related pages
Environments
The source page, labels and links.
Kubernetes
See inside your EKS clusters.
Observers
What an observer does and where it runs.
Your first incident
Follow an incident from start to finish.