You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a scan on that resource returns an error (terrascan scan -i cft -f sqs-example.yaml --severity high -o yaml
- rule_name: sqsSseDisabled
description: Ensure that your Amazon Simple Queue Service (SQS) queues are protecting the contents of their messages using Server-Side Encryption (SSE). The SQS service uses an AWS KMS Customer Master Key (CMK) to generate data keys required for the encryption/decryption process of SQS messages. There is no additional charge for using SQS Server-Side Encryption, however, there is a charge for using AWS KMS
rule_id: AC_AWS_0366
severity: HIGH
category: Security Best Practices
but updating the resource to use the long form OR updating the resource to use a standard string will fix the problem, for example changing to Fn::ImportValue):
Description
CFT scanning doesn't support short form intrinsic functions and treats a use of short form as a vulnerability.
I've seen this issue occur for multiple resource types in our YAML templates.
What I Did
An example yaml resource is seen below - notice that it uses the short form of the
ImportValue
function (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html#w45aac23c24c46b9) :Running a scan on that resource returns an error (
terrascan scan -i cft -f sqs-example.yaml --severity high -o yaml
but updating the resource to use the long form OR updating the resource to use a standard string will fix the problem, for example changing to
Fn::ImportValue
):This happens for Fn:Ref (!Ref) and others.
The text was updated successfully, but these errors were encountered: