Skip to content

EMR create_cluster support pass bootstrap arguments #3191

Description

@duoan

Is your idea related to a problem? Please describe.
Currently the API emr.create_cluster only offer simple bootstraps_paths parameters, which not allow client to add additional arguments for the bootstrap scripts. This is limited the re-use-ablity of the scripts.

Describe the solution you'd like
Please to have a pull request to enhance this, by pass a List[Union[str, dict[str, any]]] which can support both cases

  1. current sample list of bootstrap uri list
  2. the following bootstrap configurations with additional arguments, this will align with https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/emr/client/run_job_flow.html
{
  "name": "install CW agent",
  "path": "s3//example-bucket/emr-boostraps/install-cw.sh",
  "args": ["--target-aws-account", "121213", ... ],
}

P.S. Please do not attach files as it's considered a security risk. Add code snippets directly in the message body as much as possible.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions