sonarjs/aws-opensearchservice-domain
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/aws-opensearchservice-domain": "error",
},
},
];OpenSearch domains should have encryption at rest enabled
The documentation shows no incorrect example for this rule.
import { aws_opensearchservice as opensearchservice } from 'aws-cdk-lib';
const exampleDomain = new opensearchservice.Domain(this, 'ExampleDomain', {
version: EngineVersion.OPENSEARCH_1_3,
encryptionAtRest: {
enabled: true,
},
});import { aws_opensearchservice as opensearchservice } from 'aws-cdk-lib';
const exampleCfnDomain = new opensearchservice.CfnDomain(this, 'ExampleCfnDomain', {
engineVersion: 'OpenSearch_1.3',
encryptionAtRestOptions: {
enabled: true,
},
});Examples from the ESLint documentation.
sonarjs/aws-opensearchservice-domain
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/aws-opensearchservice-domain": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
AWS resource-based policies should not grant public access
Amazon RDS resources should be encrypted at rest
AWS IAM policies should limit the scope of permissions given
Administration services access should be restricted to specific IP addresses
S3 buckets should not grant access to all users or authenticated users