跳至內容

How do I enable Amazon GuardDuty Malware Production for Amazon S3 via Cloudformation or CDK

0

Good afternoon,

I note that the recently released Amazon GuardDuty feature of Malware Production for Amazon S3 can be enabled via the Console (https://docs.aws.amazon.com/guardduty/latest/ug/enable-malware-protection-s3-bucket.html). It also possible to enable this feature via Cloudformation or CDK?

Thxs in advance, Adrian

1 個回答
0

Here is a link to the CloudFormation documentation for GuardDuty Malware Protection

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html

{
  "Type" : "AWS::GuardDuty::MalwareProtectionPlan",
  "Properties" : {
      "Actions" : CFNActions,
      "ProtectedResource" : CFNProtectedResource,
      "Role" : String,
      "Tags" : [ TagItem, ... ]
    }
}

In your case, you are wanting to protect S3 so the code would look like the following to specify the S3 Bucket.

{
  "Type" : "AWS::GuardDuty::MalwareProtectionPlan",
  "Properties" : {
      "Actions" : CFNActions,
      "ProtectedResource" : {
          "S3Bucket" : S3Bucket
      },
      "Role" : String,
      "Tags" : [ TagItem, ... ]
    }
}

Hope this helps!

AWS
專家

已回答 2 年前

專家

已審閱 2 年前

  • Cool. I'll give that a shot. Thxs

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。