Skip to content

CLI Command: cluster create

Daniel Kang edited this page Oct 29, 2016 · 10 revisions

Usage

coldbrew cluster-create <cluster-name> [flags]

cluster-create command helps you create a new cluster. coldbrew-cli will look at the current status and will try to create AWS resources to configure the cluster properly.

Flags

See here for global flags.

--yes / -y

If you use this flag, coldbrew-cli will create all AWS resources with no confirmation.

--instance-type

Specify EC2 instance type of ECS Container Instances.

  • Default: "t2.micro"

--instance-count

Set the initial number of ECS Container Instances for your ECS Cluster.

  • Default: 1

--key

Specify the name of key pair you want to assign to ECS Container Instances. If you don't specify this, coldbrew-cli will try to find the default key from your account, and, will confirm with you.

--disable-keypair

Use this flag if you don't want to assign key pairs to the ECS Container Instances.

--instance-profile

By default, coldbrew-cli will create a default IAM Instance Profile for the ECS Container Instances for you. But, if you want to use your own IAM Instance Profile, specify the name using this flag.

--instance-image

By default, coldbrew-cli uses the default image for ECS Container Instances. If you want, you can use your own image by specifying the image ID (ami-*) with this flag. If your image is not based on Amazon ECS optimized image, consider providing custom userdata (--instance-userdata) too. E.g. --instance-image ami-76d97f16

--instance-userdata

You can override userdata for the ECS Container Instances by specifying the file path that contains your user data. E.g. --instance-userdata myuserdata.sh