Docs/AWS Connection

AWS Connection

Connect with a cross-account IAM role and choose the AWS control-plane access each account needs.

Overview

SnoozeDB connects to your AWS account using the standard IAM Cross-Account mechanism. You never share your access keys: a dedicated IAM role is created in your account via CloudFormation.

SnoozeDB assumes the role with AWS STS for each operation. Credentials are temporary and expire automatically. SnoozeDB does not store AWS access keys.

Your AWS AccountIAM Roleleast privilege
Secure authentication
Temporary access
SnoozeDBUses access toAWS control plane

1-click deployment

SnoozeDB generates a CloudFormation template from the modules selected for this AWS account. Deploy it in AWS, then update the stack whenever those selections change.

What the template creates

  • A dedicated IAM role with strictly limited permissions
  • A policy containing required region discovery, RDS management, and EKS access for all clusters in the connected account, plus actions for your selected optional modules

IAM Permissions

RDS Management is mandatory and includes ec2:DescribeRegions to discover account-enabled regions for RDS and EC2 scans. This permission does not grant access to instances. Every other module is optional for each connected AWS account.

IAM ActionPurpose
ec2:DescribeRegionsDiscover account-enabled regions for RDS and EC2 scans (required)
rds:DescribeDBInstancesMandatory RDS inventory and scheduling
rds:DescribeDBSnapshotsOptional RDS instance snapshot inventory
rds:DescribeDBClusterSnapshots / rds:DescribeDBClustersOptional Aurora and Multi-AZ cluster snapshot inventory
rds:DescribeReservedDBInstances / ec2:DescribeReservedInstancesOptional RDS and EC2 Reserved Instance inventory
ce:GetSavingsPlansCoverageOptional aggregate Savings Plans coverage
rds:ListTagsForResourceRead tags to apply exclusion rules
ec2:DescribeInstances / ec2:DescribeVolumes / ec2:DescribeImages / ec2:DescribeSnapshotsOptional EC2 scheduling, EC2/EBS/AMI recommendations, and standalone EBS snapshot scans
ec2:DescribeAddressesOptional unassociated Elastic IP recommendations
ec2:DescribeNatGatewaysOptional NAT gateway recommendations
elasticloadbalancing:DescribeLoadBalancers / DescribeTargetGroups / DescribeTargetHealthOptional idle load balancer recommendations
ec2:DescribeVpcEndpointsOptional idle interface VPC endpoint recommendations
ec2:DescribeInstances / ec2:DescribeVolumesOptional long-stopped EC2 instance recommendations
ec2:DescribeInstances / rds:DescribeDBInstancesOptional previous-generation EC2 and RDS instance recommendations
ec2:DescribeInstanceCreditSpecificationsOptional burstable EC2 and RDS instance recommendations
rds:DescribeDBClusters / rds:DescribeDBMajorEngineVersions / eks:ListClusters / eks:DescribeCluster / eks:DescribeClusterVersionsOptional RDS and EKS Extended Support recommendations
redshift:DescribeClusters / redshift:DescribeDataSharesForProducer / redshift:DescribeInboundIntegrationsOptional idle Redshift cluster recommendations
redshift:PauseCluster / redshift:ResumeClusterOptional Redshift scheduling: pause and resume provisioned clusters on their schedule or from Slack
elasticache:DescribeReplicationGroups / elasticache:DescribeCacheClustersOptional idle and oversized ElastiCache recommendations
lambda:ListFunctions / lambda:ListProvisionedConcurrencyConfigs / lambda:ListAliasesOptional unused Lambda provisioned concurrency recommendations
fsx:DescribeFileSystemsOptional idle FSx file system recommendations
sagemaker:ListEndpoints / sagemaker:DescribeEndpoint / sagemaker:DescribeEndpointConfigOptional idle SageMaker endpoint recommendations
s3:ListAllMyBuckets / s3:ListBucketMultipartUploads / s3:ListMultipartUploadParts / s3:GetLifecycleConfigurationOptional S3 multipart upload and lifecycle recommendations
ec2:DescribeSpotPriceHistory / ec2:DescribeInstances / eks:ListNodegroups / eks:DescribeNodegroupOptional EKS Spot capacity recommendations
ecr:DescribeRepositories / ecr:DescribeImagesList ECR repositories and image metadata
cloudwatch:GetMetricDataRead CPU and connection metrics for usage heatmaps, recommendations, and idle-resource alerts
cloudtrail:LookupEventsOptional CloudTrail verification for generated snapshot cleanup scripts
ce:GetCostAndUsageOptional cost and Savings Plans coverage data
rds:StartDBInstanceStart an instance according to the schedule
rds:StopDBInstanceStop an instance according to the schedule

Security guarantees

  • No AWS access keys are stored or transmitted
  • Access is temporary and expires automatically
  • The IAM role is protected against unauthorized third-party access
  • You can revoke access at any time by deleting the role in your AWS console

Connection troubleshooting

If verification or synchronization fails, check the connection from AWS outward before recreating it.

  • Confirm that the CloudFormation stack finished successfully and that its IAM role still exists.
  • Compare the AWS account ID, role ARN, and External ID with the values shown by SnoozeDB.
  • If a module was enabled later, confirm that the deployed stack contains its new IAM actions.
  • Review the latest sync status and error before starting another sync.

Understand the mechanism in detail

To learn exactly how AWS STS AssumeRole works, why we use an External ID, and what happens technically during each operation, read our dedicated article. STS AssumeRole explained step by step →