API referenceConsole
Cloud provider
Polylane maps your AWS account, reads CloudWatch metrics, logs and X-Ray traces to spot issues, investigates your alarms as they fire, and writes the fix.

Connect

Connect AWS from the terminal. Pass --help for the flags AWS accepts, plus --no-browser for headless environments.

Terminal
polylane cloud connect --provider aws

How it works

Access

Polylane assumes the role with an external ID that is unique to your connection. On connect, Polylane also adds an EKS access entry for the role to each EKS cluster, with the view-only AmazonEKSAdminViewPolicy, so that it can read your Kubernetes workloads.

Infrastructure graph

Polylane maps about 75 resource types in each region that you select, for example Lambda, ECS, EKS, EC2 and VPC networks, RDS, DynamoDB, S3, SQS, SNS, API Gateway, CloudFront, load balancers, ElastiCache, Step Functions and EventBridge.

The CloudTrail trail drives the sync. When a person or a deploy changes a resource, Polylane syncs that region. Changes that AWS services make, such as ECS task churn, go to a slower sync. An automatic sync runs at most once every 30 minutes. You can also sync the account from its page.

Metrics, logs and checks

Polylane reads CloudWatch metrics, CloudWatch Logs Insights and X-Ray traces. Every 30 minutes by default, it checks CloudWatch metrics for Lambda, RDS, load balancers, API Gateway, ECS, DynamoDB, SQS and other services. Account checks look for root-user activity, spikes in AccessDenied errors, and X-Ray error rate and latency. Your CloudWatch metric alarms and saved Logs Insights queries also become checks.

Alarms

When Investigate alarms is on, Polylane adds its SNS topic to the alarm and OK actions of each CloudWatch metric alarm. When you create an alarm later, CloudTrail tells Polylane, and Polylane adds the topic to it. The alarm keeps its threshold and its other actions.

Each alarm that fires becomes an issue, and a new issue starts an investigation. Polylane ignores alarms that only drive autoscaling. When the alarm goes back to OK, Polylane adds the recovery to the issue as evidence. The Alerts tab of the account has a switch for each alarm.

With createMonitoringAlarms set, Polylane also creates default alarms named Polylane-<Service>-<Metric> for errors, throttles, latency and saturation in each monitored region. It sets their thresholds from the last seven days of data.

Agents and writes

During an investigation, agents read AWS APIs, CloudWatch metrics and logs, X-Ray traces and EKS workloads. The account starts as Read-only in Polylane. A workspace admin can turn it off, so that agents can request writes: create a polylane- alarm or dashboard, mute or unmute an alarm, or scale, restart or patch an EKS workload. Each write needs a safety review and your approval before it runs.

Permissions

The IAM role has these permissions:

  • The AWS-managed ReadOnlyAccess policy. The role cannot read S3 objects, except in the bucket of the stack. It cannot read DynamoDB items, DAX, S3 Tables or S3 Vectors data.
  • Full control of the CloudTrail trail, S3 bucket and SNS topic of the stack.
  • Changes to Lambda functions, SNS topics and CloudWatch dashboards whose names start with polylane-.
  • Write access to every CloudWatch alarm in the account. The role can create or replace an alarm (PutMetricAlarm replaces the full alarm configuration) and mute or unmute an alarm. Polylane uses this access to add or remove its SNS topic, and to mute or unmute an alarm when you ask it to.
  • Deletion only of alarms whose names start with Polylane- or polylane-.
  • Tag reads and changes on resources.
  • Cost Explorer reads.
  • An EKS access entry for the role itself, limited to AmazonEKSAdminViewPolicy at cluster scope.

Disconnecting

Disconnect the account in Polylane. Polylane deletes its default alarms, removes its SNS topic from your alarms, removes the account from the infrastructure graph, and deletes the CloudFormation stack. You can also delete the stack yourself in CloudFormation, which disconnects the account.

The IAM role, its policy, the CloudTrail S3 bucket and the EKS access entries stay after the stack is deleted. Delete them yourself to remove all access. Alarms and dashboards that agents created with a polylane- name also stay.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what AWS's API lets it remove. The following stays until you remove it yourself:

  • PolylaneEnvironmentRole (DeletionPolicy Retain)
  • PolylaneEnvironmentPolicies (Retain)
  • PolylaneS3Bucket (Retain)
  • EKS access entries
Terminal
polylane cloud disconnect <id>

Tools

11

Operations agents can perform in threads.

Api
Read any AWS API via a SigV4-signed request (read-only escape hatch)
Cloud Watch Alarms
Read or manage CloudWatch alarms (list, get, getHistory, create, acknowledge, enableActions)
Cloud Watch Dashboards
Read or manage CloudWatch dashboards (list, get, create)
Cloud Watch Logs
Read CloudWatch logs (listGroups, describeStreams, getEvents, filter, query)
Get Cloud Watch Query Results
Get results of a CloudWatch Insights query
Cloud Watch Metrics
Read CloudWatch metrics (list available metrics, get data points)
X Ray Traces
Read X-Ray traces (list summaries, get full trace)
X Ray Insights
Read X-Ray insights (list, get, getEvents)
X Ray Services
Read X-Ray service topology and time-series statistics (graph, timeseries)
Get X Ray Groups
List X-Ray groups
Eks Kubectl
Read and operate on Kubernetes resources on an EKS cluster (get/list/describe/logs/events/top/rollout, plus scale, restart, patch, delete, apply)

Supported resources

77

Resource types that show up in your infrastructure graph.

Lambda Function
Lambda Layer
EC2 Instance
VPC
Subnet
Security Group
Internet Gateway
NAT Gateway
VPC Endpoint Service
VPC Peering Connection
Route Table
Network ACL
EBS Volume
Elastic IP
S3 Bucket
DynamoDB Table
RDS Instance
CloudFront Distribution
API Gateway REST API
API Gateway v2 API
API Gateway Custom Domain
SQS Queue
SNS Topic
ECS Cluster
ECS Service
ECS Task Definition
ElastiCache Cluster
App Runner Service
App Runner Connection
IAM Role
KMS Key
Kinesis Stream
ElastiCache Replication Group
RDS Cluster
RDS Proxy
Service Discovery Service
Secrets Manager Secret
EventBridge Rule
EventBridge Bus
Step Functions State Machine
Redshift Cluster
Kinesis Firehose
Neptune Cluster
Cognito User Pool
Cognito Identity Pool
Athena Workgroup
Glue Database
Glue Crawler
Glue Job
Batch Job Queue
Batch Compute Environment
Amazon MQ Broker
MSK Cluster
DocumentDB Cluster
MemoryDB Cluster
CloudTrail Trail
GuardDuty Detector
WAF Web ACL
ACM Certificate
EKS Cluster
EKS Node Group
EKS Fargate Profile
EKS Addon
EKS Access Entry
EKS Identity Provider
EKS OIDC Provider
Elasticsearch Domain
OpenSearch Domain
EventBridge Pipe
Amplify App
Application Load Balancer
Network Load Balancer
Gateway Load Balancer
Target Group
Load Balancer Listener
Listener Rule
Glue Table