Setting up an AWS credential for audit event archiving using the CLI

To configure archiving, you must set up a credential for audit event archiving and then configure CDP.

You must have set up an AWS policy in AWS IAM and received a cross-account role ARN to finish setting up an AWS credential for audit event archiving.
Use the following commands to create a new credential.
cdp environments create-aws-credential \
  --credential-name my-audit-credential \
  --role-arn arn:aws:...
The role-arn information was provided when you created an IAM role.