THE RECOMMENDED ROLE CONNECTION
A setup you approve in AWS.
The role-based onboarding template creates a scanner IAM role, a private encrypted S3 bucket and its bucket policy, and a CUR 2.0 billing export. Billing export setup is included in this template; diagnostics access is optional and off by default.
Your AWS CloudFormation execution identity needs permission to create these resources. Those setup permissions belong to the identity launching the stack; they are not general write permissions granted to Solar.
Costs and data
AWS charges can apply to billing export storage, Cost Explorer requests, and enabled diagnostics or monitoring services. Solar reads resource metadata and billing records; relevant context can be sent to its AI provider. Read the Privacy Policy.
INCLUDED BY DEFAULT43 actions
Infrastructure inventory
SolarInventoryReadOnlyV1
Reads supported resource configuration and relationships, metrics, tags, and scanner-role policy metadata. Some inventory APIs require Resource: *. This is not blanket AWS ReadOnlyAccess.
Exact allowed actions
apigateway:GETcloudformation:DescribeStackscloudformation:ListStackscloudfront:ListDistributionscloudwatch:GetMetricDataconfig:DescribeConfigurationRecorderStatusconfig:DescribeConfigurationRecordersconfig:DescribeDeliveryChannelsdynamodb:DescribeTabledynamodb:ListTablesec2:DescribeInstancesec2:DescribeRegionsec2:DescribeSecurityGroupsec2:DescribeSubnetsec2:DescribeVolumesec2:DescribeVpcsecr:DescribeImagesecr:DescribeRepositoriesecs:DescribeClustersecs:DescribeServicesecs:ListClustersecs:ListServiceselasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:DescribeTargetGroupselasticloadbalancing:DescribeTargetHealthiam:GetRoleiam:GetRolePolicyiam:ListAttachedRolePoliciesiam:ListRolePoliciesiam:ListRolesiot:ListThingskafka:ListClustersV2lambda:ListEventSourceMappingslambda:ListFunctionslogs:DescribeLogGroupsrds:DescribeDBInstancesroute53:ListHostedZonesroute53:ListResourceRecordSetss3:GetBucketLocations3:ListAllMyBucketssns:ListTopicssqs:ListQueuestag:GetResources
Policy JSON, including resource restrictions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SupportedInventory",
"Effect": "Allow",
"Action": [
"apigateway:GET",
"cloudformation:DescribeStacks",
"cloudformation:ListStacks",
"cloudwatch:GetMetricData",
"config:DescribeConfigurationRecorders",
"config:DescribeConfigurationRecorderStatus",
"config:DescribeDeliveryChannels",
"cloudfront:ListDistributions",
"dynamodb:DescribeTable",
"dynamodb:ListTables",
"ec2:DescribeInstances",
"ec2:DescribeRegions",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVolumes",
"ec2:DescribeVpcs",
"ecr:DescribeImages",
"ecr:DescribeRepositories",
"ecs:DescribeClusters",
"ecs:DescribeServices",
"ecs:ListClusters",
"ecs:ListServices",
"elasticloadbalancing:DescribeLoadBalancers",
"elasticloadbalancing:DescribeTargetGroups",
"elasticloadbalancing:DescribeTargetHealth",
"iam:ListRoles",
"iot:ListThings",
"kafka:ListClustersV2",
"lambda:ListFunctions",
"lambda:ListEventSourceMappings",
"logs:DescribeLogGroups",
"rds:DescribeDBInstances",
"route53:ListHostedZones",
"route53:ListResourceRecordSets",
"s3:GetBucketLocation",
"s3:ListAllMyBuckets",
"sns:ListTopics",
"sqs:ListQueues",
"tag:GetResources"
],
"Resource": "*"
},
{
"Sid": "VerifyScannerRolePolicy",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:GetRolePolicy",
"iam:ListAttachedRolePolicies",
"iam:ListRolePolicies"
],
"Resource": {
"Fn::Sub": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ScannerRoleName}"
}
}
]
}
INCLUDED BY DEFAULT4 actions
Billing and cost context
SolarBillingReadOnlyV1
Reads Cost Explorer cost and forecast data. Reads billing export objects only under the configured prefix in the bucket created by this stack. This policy is included by default.
Exact allowed actions
ce:GetCostAndUsagece:GetCostForecasts3:GetObjects3:ListBucket
Policy JSON, including resource restrictions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CostExplorerRead",
"Effect": "Allow",
"Action": [
"ce:GetCostAndUsage",
"ce:GetCostForecast"
],
"Resource": "*"
},
{
"Sid": "BillingExportList",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": {
"Fn::GetAtt": [
"BillingExportBucket",
"Arn"
]
},
"Condition": {
"StringLike": {
"s3:prefix": [
{
"Ref": "BillingExportPrefix"
},
{
"Fn::Sub": "${BillingExportPrefix}/*"
}
]
}
}
},
{
"Sid": "BillingExportObjects",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": {
"Fn::Sub": "${BillingExportBucket.Arn}/${BillingExportPrefix}/*"
}
}
]
}
INCLUDED BY DEFAULT16 actions
Remove Solar-created setup
SolarSelfCleanupV1
Includes write and delete permissions for the stack itself, its scanner role, billing export, and dedicated billing bucket and objects. These support the explicit Clear Data and Remove Connection flow. They do not grant general infrastructure deployment permissions.
Exact allowed actions
bcm-data-exports:DeleteExportcloudformation:DeleteStackcloudformation:DescribeStackResourcesiam:DeleteRoleiam:DeleteRolePolicyiam:DetachRolePolicyiam:TagRoleiam:UntagRoles3:DeleteBuckets3:DeleteBucketPolicys3:DeleteObjects3:DeleteObjectVersions3:GetBucketPolicys3:GetBucketTaggings3:ListBuckets3:ListBucketVersions
Policy JSON, including resource restrictions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VerifyAndEmptySolarBillingBucket",
"Effect": "Allow",
"Action": [
"s3:DeleteBucket",
"s3:DeleteBucketPolicy",
"s3:GetBucketTagging",
"s3:GetBucketPolicy",
"s3:ListBucket",
"s3:ListBucketVersions"
],
"Resource": {
"Fn::GetAtt": [
"BillingExportBucket",
"Arn"
]
}
},
{
"Sid": "DeleteSolarBillingObjects",
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:DeleteObjectVersion"
],
"Resource": {
"Fn::Sub": "${BillingExportBucket.Arn}/*"
}
},
{
"Sid": "DeleteSolarBillingExport",
"Effect": "Allow",
"Action": [
"bcm-data-exports:DeleteExport"
],
"Resource": {
"Fn::GetAtt": [
"BillingCur2Export",
"ExportArn"
]
}
},
{
"Sid": "DeleteSolarScannerRole",
"Effect": "Allow",
"Action": [
"iam:DeleteRole",
"iam:DeleteRolePolicy",
"iam:DetachRolePolicy",
"iam:TagRole",
"iam:UntagRole"
],
"Resource": {
"Fn::Sub": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ScannerRoleName}"
}
},
{
"Sid": "DeleteOnlyThisOnboardingStack",
"Effect": "Allow",
"Action": [
"cloudformation:DeleteStack",
"cloudformation:DescribeStackResources"
],
"Resource": {
"Fn::Sub": "arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/${AWS::StackName}/*"
}
}
]
}
OPTIONAL / DEFAULT OFF25 actions
Optional diagnostics
SolarDiagnosticsReadOnlyV1
Adds metadata and metrics reads for investigations, including CloudTrail event lookup, network details, alarms, EKS, and ElastiCache. Disabled by default; enable only when you want this scope.
Exact allowed actions
cloudformation:ListStackscloudfront:GetDistributioncloudtrail:LookupEventscloudwatch:DescribeAlarmscloudwatch:GetMetricDatacloudwatch:GetMetricStatisticsec2:DescribeInstanceStatusec2:DescribeInternetGatewaysec2:DescribeNatGatewaysec2:DescribeNetworkInterfacesec2:DescribeRouteTablesecr:ListImageseks:DescribeClustereks:ListClusterselasticache:DescribeCacheClusterselasticache:DescribeReplicationGroupselasticloadbalancing:DescribeTargetGroupselasticloadbalancing:DescribeTargetHealthevents:DescribeRuleevents:ListRulesevents:ListTargetsByRulekafka:DescribeClusterV2rds:DescribeDBClusterssns:GetTopicAttributessqs:GetQueueAttributes
Policy JSON, including resource restrictions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "BoundedDiagnostics",
"Effect": "Allow",
"Action": [
"cloudformation:ListStacks",
"cloudfront:GetDistribution",
"cloudtrail:LookupEvents",
"cloudwatch:DescribeAlarms",
"cloudwatch:GetMetricData",
"cloudwatch:GetMetricStatistics",
"ec2:DescribeInstanceStatus",
"ec2:DescribeInternetGateways",
"ec2:DescribeNatGateways",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeRouteTables",
"ecr:ListImages",
"eks:DescribeCluster",
"eks:ListClusters",
"elasticache:DescribeCacheClusters",
"elasticache:DescribeReplicationGroups",
"elasticloadbalancing:DescribeTargetGroups",
"elasticloadbalancing:DescribeTargetHealth",
"events:DescribeRule",
"events:ListRules",
"events:ListTargetsByRule",
"kafka:DescribeClusterV2",
"rds:DescribeDBClusters",
"sns:GetTopicAttributes",
"sqs:GetQueueAttributes"
],
"Resource": "*"
}
]
}
ROLE TRUST
Your connection has its own external ID.
The trust policy allows the Solar principal supplied during onboarding to assume the role only with the matching external ID. This public template leaves both values as parameters; it contains no customer account IDs, external IDs, keys, or credentials.
View exact trust policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": {
"Ref": "TrustedPrincipalArn"
}
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": {
"Ref": "ExternalId"
}
}
}
}
]
}
The billing bucket policy separately allows the AWS Billing Data Exports service to write export files, restricted to your AWS account and its export ARNs. It does not give Solar permission to write arbitrary objects.
View exact billing bucket policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowBillingDataExportsWrite",
"Effect": "Allow",
"Principal": {
"Service": "bcm-data-exports.amazonaws.com"
},
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": {
"Fn::Sub": "${BillingExportBucket.Arn}/*"
},
"Condition": {
"StringEquals": {
"aws:SourceAccount": {
"Ref": "AWS::AccountId"
}
},
"StringLike": {
"aws:SourceArn": {
"Fn::Sub": "arn:${AWS::Partition}:bcm-data-exports:${AWS::Region}:${AWS::AccountId}:export/*"
}
}
}
},
{
"Sid": "AllowBillingDataExportsBucketChecks",
"Effect": "Allow",
"Principal": {
"Service": "bcm-data-exports.amazonaws.com"
},
"Action": [
"s3:GetBucketAcl",
"s3:GetBucketPolicy",
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Resource": {
"Fn::GetAtt": [
"BillingExportBucket",
"Arn"
]
},
"Condition": {
"StringEquals": {
"aws:SourceAccount": {
"Ref": "AWS::AccountId"
}
},
"StringLike": {
"aws:SourceArn": {
"Fn::Sub": "arn:${AWS::Partition}:bcm-data-exports:${AWS::Region}:${AWS::AccountId}:export/*"
}
}
}
}
]
}
SEPARATE APPROVALS
Discovery is the starting point.
- This template grants no general ability to deploy, edit, or delete application workloads. Cleanup writes target the resources created for Solar onboarding.
- It does not grant secret-value reads, log-event content reads, queue-message reads, or access to application S3 objects. Optional CloudTrail lookup can return management-event metadata.
- EBS inventory uses
ec2:DescribeVolumes. EFS inventory permissions are not included in this template. - Continuous monitoring setup, including AWS Config, and GitHub infrastructure deployments use separate setup and approval flows. This scanner template does not enable them.
- This page describes the recommended role connection. If you choose the alternative access-key setup, review that template in onboarding before approving it.
Permissions define the maximum access the role allows. The JSON below preserves every resource restriction and condition; the action list alone is not the whole policy.
Continue to SolarCloud onboarding ↗ to review the deployment template and connection values before you approve the stack.
AUDITABLE SOURCE
Verify the file you are reviewing.
The downloadable JSON is generated from the exact YAML file alongside it. It includes default and optional policies, the trust policy, and the billing bucket policy. CloudFormation Ref and Fn:: expressions remain symbolic; the bundle is for review, not for directly attaching to IAM.
- Contract version
solar-scanner-policy.v2- Source repository
- plexlabs-tech/solar-ai
- Source path
infra/solar-onboarding.yml- Source commit
e0bfc381eb486f54a340f83adf8250b79bb2a298- Template SHA-256
afbe0474f64028a3d48d65d6f8dd3281979ac4a41cb802c3ff75237cdc33ade9
Calculate SHA-256 on the downloaded YAML to verify it matches this page. During onboarding, compare the template you are about to deploy; older installed stacks can have a different policy version. Repository access is not required to download or inspect either public file.