aws iot attach-principal-policy
Attaches the specified policy to the specified principal (certificate or other credential). AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--policy-nameThe policy name.--principalThe principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.