LoginSignup
0
0

More than 5 years have passed since last update.

Terraformの "aws_emr_cluster" でbootstrap_actionを複数指定する

Posted at

こんな感じで並べればOKでした。

resource "aws_emr_cluster" "emr-cluster" {
  name          = "emr-cluster"
  release_label = "emr-5.3.0"
  applications  = ["Spark"]

  ## 省略

  bootstrap_action {
    path = "s3://elasticmapreduce/bootstrap-actions/run-if"
    name = "runif"
    args = ["instance.isMaster=true", "echo running on master node"]
  }
  bootstrap_action {
    path = "s3://elasticmapreduce/bootstrap-actions/run-if"
    name = "runif"
    args = ["instance.isMaster=false", "echo running on core node"]
  }
  
  ## 省略

}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0