sonarjs/aws-iam-all-privileges
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/aws-iam-all-privileges": "error",
},
},
];The documentation shows no incorrect example for this rule.
import { aws_iam as iam } from 'aws-cdk-lib'
new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: ["iam:GetAccountSummary"],
resources: ["arn:aws:iam:::user/*"],
})Examples from the ESLint documentation.
sonarjs/aws-iam-all-privileges
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/aws-iam-all-privileges": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
AWS IAM policies should limit the scope of permissions given
AWS resource-based policies should not grant public access
Public network access to cloud resources should be disabled
OpenSearch domains should have encryption at rest enabled