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.
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 Action | Purpose |
|---|---|
| ec2:DescribeRegions | Discover account-enabled regions for RDS and EC2 scans (required) |
| rds:DescribeDBInstances | Mandatory RDS inventory and scheduling |
| rds:DescribeDBSnapshots | Optional RDS instance snapshot inventory |
| rds:DescribeDBClusterSnapshots / rds:DescribeDBClusters | Optional Aurora and Multi-AZ cluster snapshot inventory |
| rds:DescribeReservedDBInstances / ec2:DescribeReservedInstances | Optional RDS and EC2 Reserved Instance inventory |
| ce:GetSavingsPlansCoverage | Optional aggregate Savings Plans coverage |
| rds:ListTagsForResource | Read tags to apply exclusion rules |
| ec2:DescribeInstances / ec2:DescribeVolumes / ec2:DescribeImages / ec2:DescribeSnapshots | Optional EC2 scheduling, EC2/EBS/AMI recommendations, and standalone EBS snapshot scans |
| ec2:DescribeAddresses | Optional unassociated Elastic IP recommendations |
| ec2:DescribeNatGateways | Optional NAT gateway recommendations |
| elasticloadbalancing:DescribeLoadBalancers / DescribeTargetGroups / DescribeTargetHealth | Optional idle load balancer recommendations |
| ec2:DescribeVpcEndpoints | Optional idle interface VPC endpoint recommendations |
| ec2:DescribeInstances / ec2:DescribeVolumes | Optional long-stopped EC2 instance recommendations |
| ec2:DescribeInstances / rds:DescribeDBInstances | Optional previous-generation EC2 and RDS instance recommendations |
| ec2:DescribeInstanceCreditSpecifications | Optional burstable EC2 and RDS instance recommendations |
| rds:DescribeDBClusters / rds:DescribeDBMajorEngineVersions / eks:ListClusters / eks:DescribeCluster / eks:DescribeClusterVersions | Optional RDS and EKS Extended Support recommendations |
| redshift:DescribeClusters / redshift:DescribeDataSharesForProducer / redshift:DescribeInboundIntegrations | Optional idle Redshift cluster recommendations |
| redshift:PauseCluster / redshift:ResumeCluster | Optional Redshift scheduling: pause and resume provisioned clusters on their schedule or from Slack |
| elasticache:DescribeReplicationGroups / elasticache:DescribeCacheClusters | Optional idle and oversized ElastiCache recommendations |
| lambda:ListFunctions / lambda:ListProvisionedConcurrencyConfigs / lambda:ListAliases | Optional unused Lambda provisioned concurrency recommendations |
| fsx:DescribeFileSystems | Optional idle FSx file system recommendations |
| sagemaker:ListEndpoints / sagemaker:DescribeEndpoint / sagemaker:DescribeEndpointConfig | Optional idle SageMaker endpoint recommendations |
| s3:ListAllMyBuckets / s3:ListBucketMultipartUploads / s3:ListMultipartUploadParts / s3:GetLifecycleConfiguration | Optional S3 multipart upload and lifecycle recommendations |
| ec2:DescribeSpotPriceHistory / ec2:DescribeInstances / eks:ListNodegroups / eks:DescribeNodegroup | Optional EKS Spot capacity recommendations |
| ecr:DescribeRepositories / ecr:DescribeImages | List ECR repositories and image metadata |
| cloudwatch:GetMetricData | Read CPU and connection metrics for usage heatmaps, recommendations, and idle-resource alerts |
| cloudtrail:LookupEvents | Optional CloudTrail verification for generated snapshot cleanup scripts |
| ce:GetCostAndUsage | Optional cost and Savings Plans coverage data |
| rds:StartDBInstance | Start an instance according to the schedule |
| rds:StopDBInstance | Stop 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 →