Skip to content

Commit

Permalink
Allow launch configuration customizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
eman8519 committed Mar 2, 2016
1 parent b94b7ea commit 45962b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ set :aws_region, ENV['AWS_REGION']

set :aws_no_reboot_on_create_ami, true
set :aws_autoscale_instance_size, 'm1.small'

set :aws_launch_configuration_detailed_instance_monitoring, true
set :aws_launch_configuration_associate_public_ip, true
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions lib/elbas/launch_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def instance_size
def create_options
_options = {
security_groups: base_ec2_instance.security_groups.to_a,
detailed_instance_monitoring: true,
associate_public_ip_address: true,
detailed_instance_monitoring: fetch(:aws_launch_configuration_detailed_instance_monitoring, true),
associate_public_ip_address: fetch(:aws_launch_configuration_associate_public_ip, true),
}

if user_data = fetch(:aws_launch_configuration_user_data, nil)
Expand Down

0 comments on commit 45962b4

Please sign in to comment.