gpt4 book ai didi

amazon-iam - 有没有办法为非事件的 aws 用户设置警报

转载 作者:行者123 更新时间:2023-12-04 09:17:09 25 4
gpt4 key购买 nike

有什么方法可以为处于非事件状态的 AWS 用户设置警报,例如60天?我的意思是我需要创建一个警报,如果 AWS 用户账户在一段时间内处于非事件状态,它将发送通知

最佳答案

来自 GenerateServiceLastAccessedDetails - AWS Identity and Access Management :

GenerateServiceLastAccessedDetails() Generates a report that includes details about when an IAM resource (user, group, role, or policy) was last used in an attempt to access AWS services. Recent activity usually appears within four hours.


来自 GetServiceLastAccessedDetails - AWS Identity and Access Management :

GetServiceLastAccessedDetails() Retrieves a service last accessed report that was created using the GenerateServiceLastAccessedDetails operation. You can use the JobId parameter in GetServiceLastAccessedDetails to retrieve the status of your report job. When the report is complete, you can retrieve the generated report. The report includes a list of AWS services that the resource (user, group, role, or managed policy) can access.


因此,查看这些命令(可通过 AWS CLI 或 AWS SDK 获得)并找到用户访问的所有服务的最新日期。
另见: Identify unused IAM roles and remove them confidently with the last used timestamp | AWS Security Blog

关于amazon-iam - 有没有办法为非事件的 aws 用户设置警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63167839/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com