Using IAM role

Configure remote logging for Cloudera Workflow Orchestrator running on an AWS S3 bucket that is outside AWS using an IAM user.

You must obtain the following information:
  • Log bucket name
  • Access key ID
  • Secret access key
  • Role ARN
  1. Configure the Cloudera Workflow Orchestrator connection using the bucket, and access key information and provide the following role ARN in the Logging IAM Role ARN field:
    {
      "role_arn": "<***ROLE_ARN***>",
      "assume_role_method": "assume_role"
    }

    For instructions about configuring Cloudera Workflow Orchestrator, see Deploying Cloudera Workflow Orchestrator.

  2. Create an IAM Role in AWS with read, write, and list permissions for the bucket.
  3. Create an IAM User in AWS that can assume the role.
  4. Update the user policy and role policy in the AWS.
    Examples
    • User policy example
      {
          "Version": "2012-10-17",
          "Statement": [
              {
                  "Sid": "VisualEditor0",
                  "Effect": "Allow",
                  "Action": [
                      "sts:AssumeRole"
                  ],
                  "Resource": "<Role ARN>"
              }
          ]
      }
    • Role policy example
      {
          "Version": "2012-10-17",
          "Statement": [
              {
                  "Sid": "Statement1",
                  "Effect": "Allow",
                  "Action": [
                      "s3:*Object",
                      "s3:AbortMultipartUpload",
                      "s3:GetBucketAcl",
                      "s3:PutObjectAcl",
                      "s3:ListBucket"
                  ],
                  "Resource": [
                      "arn:aws:s3:::<Bucket name>/*",
                      "arn:aws:s3:::<Bucket name>"
                  ]
              }
          ]
      }