In this following step, we have create an IAM role base on the prervious policy for further use to specify Permission in GuardDuty
pl-gd-s3-raw
In the Trust Policy, paste the previous Trust Relationship in 3.1 section
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "malware-protection-plan.guardduty.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
Review the Role and Create new Role:
Complete create role