CloudWatch logs and metrics.Your agent can inspect the current setup, prepare the connection and test access. You choose the account and resource scope, approve provider consent when needed, and authorize any required grants.
Connect AWS so Struct Agent can query CloudWatch logs and metrics and inspect the permitted infrastructure context. Use the workspace-specific grant instructions and verify the intended account and role.Use the catalog’s current fields, choices and permission requirements. Reuse an existing healthy connection instead of creating a duplicate.An authorized operator runs the generated provider commands after checking the account and scope. Printing them does not apply grants. Preserve generated identifiers (such as an AWS External ID or Snowflake key-pair ID), then run the returned connection command with the real values.Inspect
Replace the values in angle brackets.Permission catalog version
Inspect access and existing connections
Use a claimed workspace with permission to configure connections.Connect with the CLI
Print the setup material first:Verify and recover
Use the returned connection ID:ok, health and missing permissions, not only the exit code. struct connections grant-command CONNECTION_ID prints repair instructions where supported; have an authorized operator apply them. For expired OAuth links, start the connection command again and use the new link. Do not reconnect to a different account silently.Verify a bounded operation for the requested job. Connection health proves checked access; it does not prove telemetry arrival, an investigation or alert delivery.What Struct reads
Log groups and streams, CloudWatch Logs Insights queries, metrics, and existing alarms.Amazon Managed Service for Prometheus
Struct can discover AMP workspaces and query PromQL through the same assumed-role connection. Keep the workspace ARN when reusing a query as evidence or a watch. AMP permissions are optional and do not replace CloudWatch permissions. Query access needs AMP workspace discovery plus query/label/series permissions; native alert management additionally needs rule namespace, Alertmanager, and SNS delivery permissions. The connection permission report shows the required actions.Existing alert and recording rules remain separate. Struct preserves neighboring rules and customer notification routes when changing an individual alert, and reports incomplete inventories or configuration drift explicitly.Permissions
The IAM role Struct assumes needs the AWS managed policies CloudWatchReadOnlyAccess and ViewOnlyAccess, plus thestruct-coverage-access inline policy (89 actions) for Auto Monitors, infrastructure checks and AMP. AMP access is optional for connection readiness; setup includes it.Verify permissions
Check the role’s own permissions without creating anything.Granted by:struct-coverage-access.Infrastructure inventory
List the account’s resources in every enabled region.Granted by:ViewOnlyAccess, struct-coverage-access.Permissions Struct uses: resource-explorer-2:Search, resource-explorer-2:ListResources, resource-explorer-2:GetIndex, resource-explorer-2:GetView, resource-explorer-2:GetDefaultView, ec2:DescribeRegions.Resource configuration
Read control-plane configuration without application data or secret values.Granted by:struct-coverage-access.Permissions Struct uses (51)
Permissions Struct uses (51)
Metrics
Discover and query CloudWatch metrics.Granted by:CloudWatchReadOnlyAccess.Permissions Struct uses: cloudwatch:ListMetrics, cloudwatch:GetMetricData, cloudwatch:GetMetricStatistics.Logs
Read existing logs and run read-only log queries.Granted by:CloudWatchReadOnlyAccess.Permissions Struct uses: logs:DescribeLogGroups, logs:FilterLogEvents, logs:StartQuery, logs:GetQueryResults, logs:StopQuery.Infrastructure change history
Read management events to refresh resources that changed.Granted by:ViewOnlyAccess, struct-coverage-access.Permissions Struct uses: cloudtrail:LookupEvents.Managed Prometheus metrics
Only needed for AMP: discover workspaces and query PromQL using the existing role.Granted by:struct-coverage-access.Permissions Struct uses: aps:ListWorkspaces, aps:DescribeWorkspace, aps:QueryMetrics, aps:GetLabels, aps:GetSeries, aps:GetMetricMetadata.Managed Prometheus rule inventory
Only needed for AMP: inspect existing alerts, recording rules and delivery.Granted by:struct-coverage-access.Permissions Struct uses: aps:ListRuleGroupsNamespaces, aps:DescribeRuleGroupsNamespace, aps:DescribeAlertManagerDefinition.Manage Prometheus alerts
Only needed for AMP: manage native rules, Alertmanager and SNS delivery.Granted by:struct-coverage-access.Permissions Struct uses (16)
Permissions Struct uses (16)
Manage monitoring
Create, tag, inspect and remove the alarms and metric filters Struct manages, and the SNS topic that delivers alarms to Struct.Granted by:struct-coverage-access.- Inventory reads through AWS Resource Explorer. Turn on Resource Explorer indexing in the account and set an unfiltered default view, or Struct reports inventory as incomplete.
- Do not use CloudWatchLogsReadOnlyAccess alone: it cannot list metrics or describe alarms.
- Some configuration responses can include sensitive values, such as Lambda and ECS environment variables. Struct redacts environment variables and known secret-bearing fields before saving resource snapshots.
How to grant
Create the role (AWS CloudShell)
Create the role (AWS CloudShell)
Update an existing role
Update an existing role
The struct-coverage-access inline policy
The struct-coverage-access inline policy
2026-11-04.1. See permission changes.