iot:AttachPolicy is a Permissions management access-level action in the iot service. Grants permission to attach a policy to the specified target
ARNs that iot:AttachPolicy can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants iot:AttachPolicy.
Filters access by a tag key component of a tag associated to the IoT resource in the request
A minimal policy that allows iot:AttachPolicy. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowIotAttachPolicy",
"Effect": "Allow",
"Action": "iot:AttachPolicy",
"Resource": "*"
}
]
}