We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting the followin warning
kmsKeyExposedPolicy:22: eval_builtin_error: json.unmarshal: invalid character '$' looking for beginning of value} {rule 15 0 'AWS.KMS.NetworkSecurity.High.0566' <nil>} {file 15 0 kmsKeyExposedPolicy.rego <nil>}
While scanning the following tf code.
cat main.tf resource "aws_sns_topic" "user_updates" { name = "user-updates-topic" kms_master_key_id = "alias/aws/sns" # kms_master_key_id = aws_kms_key.key["default"].arn } provider "aws" { region = "eu-west-1" } locals { applications = toset(concat(["default"], var.applications)) } variable "applications" { type = list default = [] } resource "aws_kms_key" "key" { for_each = local.applications description = "kms key" enable_key_rotation = true deletion_window_in_days = 30 policy = data.aws_iam_policy_document.service_access.json } data "aws_iam_policy_document" "service_access" { policy_id = "my-kms" statement { effect = "Allow" principals { type = "Service" identifiers = ["cloudtrail.amazonaws.com", "logs.amazonaws.com"] } actions = ["kms:Encrypt", "kms:Decrypt", "kms:ReEncrypt*", "kms:GenerateDataKey*", "kms:Describe*", "kms:"] resources = ["*"] } statement { effect = "Allow" principals { type = "Service" identifiers = ["cloudwatch.amazonaws.com"] } actions = ["kms:Decrypt", "kms:GenerateDataKey"] resources = ["*"] } }
$ terrascan scan -l debug .
The text was updated successfully, but these errors were encountered:
Hi, @ismailyenigul please make use of tfplan based scanning feature of terrascan.
tfplan
terrascan
This blog can help you in understanding how terrascan can use tfplan output files for scanning IaC.
Sorry, something went wrong.
harkirat22
No branches or pull requests
MacOS
Description
Getting the followin warning
While scanning the following tf code.
What I Did
The text was updated successfully, but these errors were encountered: