CmdID

CmdID / aws / aws iot

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

2 in the AWS CLI reference
--policy-nameThe policy name.
--principalThe principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.