aws dlm create-default-role
Creates the default IAM role which will be used by Lifecycle service. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To create the required IAM role for Amazon DLM
The following create-default-role example creates the AWSDataLifecycleManagerDefaultRole default role for managing snapshots.
aws dlm create-default-role --resource-type snapshotIdentify--resource-typeThe resource type for which the role needs to be created.This command produces no output.
For more information, see Default service roles for Amazon Data Lifecycle Manager in the Amazon Elastic Compute Cloud User Guide.
Options
--iam-endpointThe IAM endpoint to call for creating the roles.--resource-typeThe resource type for which the role needs to be created.