sonarjs/aws-ec2-unencrypted-ebs-volume
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
},
},
];The documentation shows no incorrect example for this rule.
import { Size } from 'aws-cdk-lib';
import { Volume } from 'aws-cdk-lib/aws-ec2';
new Volume(this, 'encrypted-explicit', {
availabilityZone: 'eu-west-1a',
size: Size.gibibytes(1),
encrypted: true
});Examples from the ESLint documentation.
sonarjs/aws-ec2-unencrypted-ebs-volume
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Public network access to cloud resources should be disabled
AWS API Gateway should require authentication
Nested properties of Lodash and Underscore.js clone results should not be mutated
AWS IAM policies should limit the scope of permissions given