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
Attach a log file with relevant data preferably in DEBUG level (--log-level=DEBUG)
Attach the scanned sample files, anonymize the data if the original file cannot be provided
When attaching files to the issue make sure they are properly formatted
when running a scan on the following TF file:
data "aws_iam_policy_document" "blabla" {
statement {
actions = [
"secretsmanager:GetSecretValue",
]
resources = [
for s in [
"DATABASE_READONLY_PASSWORD",
"DATABASE_DATA_PASSWORD",
] : "arn:aws:secretsmanager:eu-west-1:${data.aws_caller_identity.this.account_id}:secret:/${var.env}/*/${s}-*"
]
}
}
we are getting the following error:
Scanning with Keeping Infrastructure as Code Secure v1.7.4
1:45PM INF Scanning with Keeping Infrastructure as Code Secure v1.7.4
1:45PM INF Operating system: linux
1:45PM INF Total memory: 5.8G
1:45PM INF CPU: 5.0
1:45PM INF Total files in the project: 1
1:45PM INF Loading queries of type: terraform
1:45PM INF Inspector initialized, number of queries=1046
1:45PM INF Query execution timeout=1m0s
Preparing Scan Assets: Done
1:45PM ERR failed to marshal content in file: /path/bla.tf error="json: error calling MarshalJSON for type model.Document: value is not known"
Error: failed to read sources: failed to save file content: json: error calling MarshalJSON for type model.Document: value is not known
The text was updated successfully, but these errors were encountered:
Found a bug? You're welcome to
--log-level=DEBUG
)when running a scan on the following TF file:
we are getting the following error:
The text was updated successfully, but these errors were encountered: