Module: Kontena::Plugin::Aws::Prompts::Common
- Included in:
- Master::CreateCommand, Nodes::CreateCommand
- Defined in:
- lib/kontena/plugin/aws/prompts.rb
Defined Under Namespace
Modules: Defaults
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/kontena/plugin/aws/prompts.rb', line 9 def self.included(base) base.prepend Defaults base.option "--access-key", "ACCESS_KEY", "AWS access key ID", environment_variable: "AWS_ACCESS_KEY_ID" base.option "--secret-key", "SECRET_KEY", "AWS secret access key", environment_variable: "AWS_SECRET_ACCESS_KEY" base.option "--key-pair", "KEY_PAIR", "EC2 key pair name" base.option "--region", "REGION", "EC2 Region", environment_variable: "AWS_REGION" base.option "--ssh-public-key", "[PATH]", "SSH public key file path" base.option "--zone", "ZONE", "EC2 Availability Zone (a,b,c,d,e)" base.option "--type", "SIZE", "Instance type" base.option "--vpc-id", "VPC ID", "Virtual Private Cloud (VPC) ID (default: default vpc)" base.option "--storage", "STORAGE", "Storage size (GiB)" base.option "--subnet-id", "SUBNET ID", "VPC option to specify subnet to launch instance into (default: first subnet in vpc/az)" base.option "--version", "VERSION", "Define installed Kontena version", default: 'latest' base.option "--[no-]associate-public-ip-address", :flag, "Whether to associated public IP in case the VPC defaults to not doing it", default: true, attribute_name: :associate_public_ip base.option "--security-groups", "SECURITY GROUPS", "Comma separated list of security groups (names) where the new instance will be attached (default: create grid specific group if not already existing)" base.option "--aws-bundled-cert", :flag, "Use CA certificate bundled in AWS SDK", default: false do |bundle| Aws.use_bundled_cert! if bundle end end |