Why it matters
In Spot-heavy accounts, such as Kubernetes or batch clusters, Config can cost more than expected because each short-lived instance is recorded several times.How nOps finds it
nOps compares the daily number of Config items with the daily number of distinct Spot instances in each account over the last 30 days. An account is flagged when there are at least 21 days of data, the two move together (correlation of at least 0.5), and it ran at least 100 Spot instances a day on average in the last 7 days. nOps estimates the items each Spot instance adds from that relationship. The saving is that share of the Config item cost in the last 7 days, scaled to a month, at your billed price per item, and must be at least $50 a month.Before you start
Know which Config rules and Security Hub controls apply to EC2 instances, network interfaces and volumes. Permission to change the configuration recorder (config:PutConfigurationRecorder).
How to implement
- Check which Config rules, conformance packs and Security Hub controls evaluate EC2 instances, network interfaces and volumes.
- In the AWS Config console, open Settings → Edit for the recorder.
- Either exclude the resource types EC2 Instance, EC2 NetworkInterface and EC2 Volume from recording, or set their recording frequency to daily instead of continuous.
- For many accounts, make the change in the organization’s recorder template (for example CloudFormation StackSets or Control Tower settings).
- Check the Config bill after a week.
Risks and considerations
- Config rules and Security Hub controls on those types will see daily changes or none. Confirm your compliance needs allow it.
- Short-lived Spot instances recorded daily may not appear in Config at all.
- To roll back, set the resource types back to continuous recording.
FAQs
Why is this an account-level recommendation?
Why is this an account-level recommendation?
Config recording is set per account and region, so the change and the saving apply to the account.
Related
- Reduce AWS Config Recording in Non-Production Accounts
- Supported recommendations