AWS Amazon Inspector Assessment Target
This page shows how to write Terraform and CloudFormation for Amazon Inspector Assessment Target and write them securely.
aws_inspector_assessment_target (Terraform)
The Assessment Target in Amazon Inspector can be configured in Terraform with the resource name aws_inspector_assessment_target
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_inspector_assessment_target" "scheduled_inspector_target" {
name = "Scheduled assessment target"
resource_group_arn = aws_inspector_resource_group.scheduled_inspector.arn
}
resource "aws_inspector_assessment_target" "myinspector" {
name = "inspector-instance-assessment"
}
resource "aws_inspector_assessment_template" "template" {
name = data.aws_region.current.name
Parameters
-
arn
optional computed - string -
id
optional computed - string -
name
required - string -
resource_group_arn
optional - string
Explanation in Terraform Registry
Provides a Inspector assessment target
AWS::Inspector::AssessmentTarget (CloudFormation)
The AssessmentTarget in Inspector can be configured in CloudFormation with the resource name AWS::Inspector::AssessmentTarget
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::Inspector::AssessmentTarget
Properties:
AssessmentTargetName : "Allinstances"
AssessmentTemplate:
Type: AWS::Inspector::AssessmentTemplate
Properties:
Type: AWS::Inspector::AssessmentTarget
Properties:
AssessmentTargetName: InspectorAssessmentTarget
InspectorTemplate:
Type: AWS::Inspector::AssessmentTemplate
Type: AWS::Inspector::AssessmentTarget
Properties:
ResourceGroupArn: !Ref MyInspectoryResourceGroup
MyInspectorTemplate:
Type: AWS::Inspector::AssessmentTemplate
Type: AWS::Inspector::AssessmentTarget
Properties:
ResourceGroupArn: !Ref MyInspectoryResourceGroup
MyInspectorTemplate:
Type: AWS::Inspector::AssessmentTemplate
Type: AWS::Inspector::AssessmentTarget
Properties:
AssessmentTargetName: "All-Instances"
inspectorAssessmentTemplate:
"AWS::Inspector::AssessmentTarget": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html",
"Attributes": {
"Arn": {
"PrimitiveType": "String"
}
"AWS::Inspector::AssessmentTarget": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html",
"Attributes": {
"Arn": {
"PrimitiveType": "String"
}
"AWS::Inspector::AssessmentTarget": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html",
"Attributes": {
"Arn": {
"PrimitiveType": "String"
}
"AWS::Inspector::AssessmentTarget": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html",
"Attributes": {
"Arn": {
"PrimitiveType": "String"
}
"AWS::Inspector::AssessmentTarget": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html",
"Attributes": {
"Arn": {
"PrimitiveType": "String"
}
Parameters
-
AssessmentTargetName
optional - String -
ResourceGroupArn
optional - String
Explanation in CloudFormation Registry
The
AWS::Inspector::AssessmentTarget
resource is used to create Amazon Inspector assessment targets, which specify the Amazon EC2 instances that will be analyzed during an assessment run.
Frequently asked questions
What is AWS Amazon Inspector Assessment Target?
AWS Amazon Inspector Assessment Target is a resource for Amazon Inspector of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon Inspector Assessment Target?
For Terraform, the heldersepu/hs-scripts and snapdocs/terraform-aws-inspector source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the tkykm/sls-aws-monitoring-slack, AymanZahran/AWS_DevOps_Automation and ambasad/devio-blog-cfn source code examples are useful. See the CloudFormation Example section for further details.