The SQS queue is not used as a dead-letter queue (DLQ) and does not have a DLQ enabled. Using a DLQ helps maintain the queue flow and avoid losing data by detecting and mitigating failures and service disruptions on time. [Error at /SampleCdkNagStack/SampleCdkNagQueue/Resource] AwsSolutions-SQS4: The SQS queue does not require requests to use SSL. Without HTTPS (TLS), a network-based attacker can eavesdrop on network traffic or manipulate it, using an attack such as man-in-the-middle. Allow only encrypted connections over HTTPS (TLS) using the aws:SecureTransport condition in the queue policy to force requests to use SSL. Found errors ▪ lib/hello-cdk-stack.ts SQSを作成。 nagはsynthesizer実⾏前にチェックが⼊り、コンプライアンスに満たさない設定を出⼒する。 以下はsynth実⾏後、コンプライアンス違反のある設定を出⼒。 const queue = new sqs.Queue(this, 'SampleCdkNagQueue', { visibilityTimeout: cdk.Duration.seconds(300) });
The SQS queue does not require requests to use SSL. Without HTTPS (TLS), a network-based attacker can eavesdrop on network traffic or manipulate it, using an attack such as man-in-the-middle. Allow only encrypted connections over HTTPS (TLS) using the aws:SecureTransport condition in the queue policy to force requests to use SSL. Found errors ▪ lib/hello-cdk-stack.ts サプレス(抑⽌)を追加 const queue = new sqs.Queue(this, 'SampleCdkNagQueue', { visibilityTimeout: cdk.Duration.seconds(300) }); // サプレス追加 NagSuppressions.addResourceSuppressions(queue, [ { id: "AwsSolutions-SQS3", reason: "no need to create DDL."}, ]); コンプライアンスエラー 「AwsSolutions-SQS3」が、サプレス(抑⽌)されている