-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(analyzer): added support to Cloud Development Kit for Terraform …
…(CDKTF) (#4770)
- Loading branch information
1 parent
8683d63
commit b38bc28
Showing
5 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
assets/queries/terraform/aws/ec2_instance_monitoring_disabled/test/negative3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"//": { | ||
"metadata": { | ||
"backend": "local", | ||
"stackName": "cdktf-test", | ||
"version": "0.9.0" | ||
}, | ||
"outputs": {} | ||
}, | ||
"provider": { | ||
"aws": [ | ||
{ | ||
"region": "us-east-1" | ||
} | ||
] | ||
}, | ||
"resource": { | ||
"aws_instance": { | ||
"cdktf-test": { | ||
"//": { | ||
"metadata": { | ||
"path": "cdktf-test/cdktf-test", | ||
"uniqueId": "cdktf-test" | ||
} | ||
}, | ||
"ami": "ami-1212f123", | ||
"instance_type": "t2.micro", | ||
"monitoring": true | ||
} | ||
} | ||
}, | ||
"terraform": { | ||
"backend": { | ||
"local": { | ||
"path": "/terraform.cdktf-test.tfstate" | ||
} | ||
}, | ||
"required_providers": { | ||
"aws": { | ||
"source": "aws", | ||
"version": "~> 3.0" | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
assets/queries/terraform/aws/ec2_instance_monitoring_disabled/test/positive5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"//": { | ||
"metadata": { | ||
"backend": "local", | ||
"stackName": "cdktf-test", | ||
"version": "0.9.0" | ||
}, | ||
"outputs": {} | ||
}, | ||
"provider": { | ||
"aws": [ | ||
{ | ||
"region": "us-east-1" | ||
} | ||
] | ||
}, | ||
"resource": { | ||
"aws_instance": { | ||
"cdktf-test": { | ||
"//": { | ||
"metadata": { | ||
"path": "cdktf-test/cdktf-test", | ||
"uniqueId": "cdktf-test" | ||
} | ||
}, | ||
"ami": "ami-1212f123", | ||
"instance_type": "t2.micro", | ||
"monitoring": false | ||
} | ||
} | ||
}, | ||
"terraform": { | ||
"backend": { | ||
"local": { | ||
"path": "/terraform.cdktf-test.tfstate" | ||
} | ||
}, | ||
"required_providers": { | ||
"aws": { | ||
"source": "aws", | ||
"version": "~> 3.0" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters