Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Adds BlockDevices for LaunchConfigurations #210

Merged

Conversation

jschneiderhan
Copy link
Contributor

Adds Block Device support for Launch Configurations.

The code is mostly copied from the EC2 package and tests.

@jschneiderhan
Copy link
Contributor Author

Oops - I actually think I need to change BlockDevices to BlockDeviceMappings in a few places.

@statik
Copy link

statik commented Feb 11, 2015

👍 I definitely need this for a project I'm working on. I hope it can be reviewed and merged soon. Anything I can do to help or test?

@jschneiderhan
Copy link
Contributor Author

@statik just waiting for review by a maintainer. It seems to work when paired with hashicorp/terraform#935. I've never written a line of Go before this, so if you have a min to do a quick review it would be helpful to avoid any back-and-forth due to stupid errors when the maintainers get a chance to look at it 😄.

@@ -298,6 +355,7 @@ func (autoscaling *AutoScaling) CreateLaunchConfiguration(options *CreateLaunchC
b64.Encode(userData, []byte(options.UserData))
params["UserData"] = string(userData)
}
addBlockDeviceParams("", params, options.BlockDevices)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're always passing an empty string for the first arg, should we just drop the prename arg?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing he just copied the function from another package. Its fine, we'll switch to aws-go soon enough anyways.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct - copied from the ec2 package.

@phinze
Copy link
Contributor

phinze commented Feb 13, 2015

Hey there - thanks for this! One quick question inline but otherwise looking good!

@mitchellh
Copy link
Owner

LGTM.

mitchellh added a commit that referenced this pull request Feb 17, 2015
Adds BlockDevices for LaunchConfigurations
@mitchellh mitchellh merged commit 975d88b into mitchellh:master Feb 17, 2015
@jschneiderhan jschneiderhan deleted the block-devices-launch-config branch February 17, 2015 19:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants