AWS 故障注入模拟器返回 'Not authorized to perform the required action.'

AWS Fault Injection Simulator returning 'Not authorized to perform the required action.'

我正在尝试使用 AWS FIS 通过 ssm 发送命令 (aws:ssm:send-command/AWSFIS-Run-CPU-Stress) 在 ubuntu VM 上强调 CPU。

当我通过 ssh 连接到 VM 并使用 'top' 命令时,我看到 CPU 成功地从 0.3% 上升到 99.9% 但令人惊讶的是 FIS 实验最终处于 'failed' 状态带有标签:'Not authorized to perform the required action'.

因为 cpu 肯定增加了,我什至看到命令名称 'stress-ng-cpu' 反对 99.9% cpu 条目,知道为什么它仍然说 'not authorized' 并结束处于失败状态?

谢谢。

在我完全删除我的并应用如下所示的权限后它起作用了:https://chaos-engineering.workshop.aws/en/030_basic_content/030_basic_experiment/10-permissions.html

为了其他可能 运行 遇到类似问题的人的利益而发布。