sonarjs/aws-efs-unencrypted
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/aws-efs-unencrypted": "error",
},
},
];The documentation shows no incorrect example for this rule.
import { FileSystem } from 'aws-cdk-lib/aws-efs';
new FileSystem(this, 'encrypted-explicit', {
vpc: new Vpc(this, 'VPC'),
encrypted: true
});import { CfnFileSystem } from 'aws-cdk-lib/aws-efs';
new CfnFileSystem(this, 'encrypted-explicit-cfn', {
encrypted: true
});Examples from the ESLint documentation.
sonarjs/aws-efs-unencrypted
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/aws-efs-unencrypted": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Public network access to cloud resources should be disabled
AWS IAM policies should limit the scope of permissions given
AWS API Gateway should require authentication
AWS resource-based policies should not grant public access