mirror of
https://github.com/inspec/inspec
synced 2024-12-22 11:03:11 +00:00
9616ebf19a
* Add example AWS profile Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com> * Add example Azure profile Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
8 lines
218 B
Ruby
8 lines
218 B
Ruby
control 'iam_users_access_key_age' do
|
|
title 'No access keys may be older than 90 days'
|
|
impact 1.0
|
|
|
|
describe aws_iam_access_keys.where { created_days_ago > 90 } do
|
|
its('entries') { should be_empty }
|
|
end
|
|
end
|