Data Integration Elastic Administration > Command reference > generate-policies-for-userdefined-roles.sh
  

generate-policies-for-userdefined-roles.sh

Generates the policy content for the master and worker roles in an AWS environment.
The output is saved to the my-userdefined-master-worker-role-policies.json file. You can restrict certain elements in the policy content and attach the content as policies to the master and worker roles. For more information, see Create user-defined master and worker roles.
The command uses the following options:
-h | -help
-sd | -staging-dir=<cluster-staging-directory>
-ld | -logging-dir=<cluster-logging-directory>
The following table describes each option:
Option
Description
-help
-h
Access the help for the command.
-staging-dir
-sd
Staging directory for the elastic cluster.
Use the format -staging-dir=bucket/folder.
The directory must include at least the bucket name. Do not include the prefix s3://.
-logging-dir
-ld
Logging directory that stores logs for the elastic cluster and elastic jobs that run on the cluster.
Use the format -logging-dir=bucket/folder.
The directory must include at least the bucket name. Do not include the prefix s3://.