lib/ami_spec.rb in ami_spec-1.7.0 vs lib/ami_spec.rb in ami_spec-1.8.0
- old
+ new
@@ -36,11 +36,13 @@
# allow_any_temporary_security_group::
# The temporary security group will allow SSH connections from any IP address (0.0.0.0/0)
# aws_instance_type::
# AWS ec2 instance type
# aws_public_ip::
- # Should the instances get a public IP address
+ # Should the instances get a public IP address and use that IP for SSH
+ # associate_public_ip::
+ # Launch instances with a public IP but don't use that IP for SSH
# ssh_user::
# The username to SSH to the AMI with.
# ssh_retries::
# Set the maximum number of ssh retries while waiting for the instance to boot.
# tags:::
@@ -145,10 +147,11 @@
opt :aws_security_groups,
'Security groups to associate to the launched instances. May be specified multiple times. If not provided a temporary security group will be generated in AWS',
type: :string, default: nil, multi: true, short: :c
opt :allow_any_temporary_security_group, 'The temporary security group will allow SSH connections from any IP address (0.0.0.0/0)',
short: :n
- opt :aws_public_ip, 'Launch instances with a public IP', short: :p
+ opt :aws_public_ip, 'Launch instances with a public IP and use that IP for SSH', short: :p
+ opt :associate_public_ip, "Launch instances with a public IP but don't use that IP for SSH", short: :q
opt :ssh_retries, 'The number of times we should try sshing to the ec2 instance before giving up. Defaults to 30',
type: :int, default: 30, short: :t
opt :tags, 'Additional tags to add to launched instances in the form of comma separated key=value pairs. i.e. Name=AmiSpec',
type: :string, default: '', short: :g
opt :debug, "Don't terminate instances on exit", short: :d