Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: Add "no_device" support to ephemeral block devices #10547

Merged

Conversation

timonwong
Copy link
Contributor

Fixes #8455, #5390

This add a new no_device attribute to ephemeral_block_device block,
which allows users omit ephemeral devices from AMI's predefined block
device mappings, which is useful for EBS-only instance types.

@timonwong timonwong force-pushed the aws-ephemeral-no-device-support branch 12 times, most recently from ce5f446 to 3b84fe5 Compare December 6, 2016 07:28
@kwilczynski
Copy link
Contributor

@timonwong hi there! Thank you!

Would there be a way to guard against someone not specifying either virtual_name or no_device? Given that both are optional now, thus if someone omits both, then the default would be false for no_device resulting in an empty string being used coming from virtual_name. Could that cause a problem?

@timonwong timonwong force-pushed the aws-ephemeral-no-device-support branch 2 times, most recently from 31844c9 to f8b2eea Compare December 7, 2016 05:19
Fixes hashicorp#8455, hashicorp#5390

This add a new `no_device` attribute to `ephemeral_block_device` block,
which allows users omit ephemeral devices from AMI's predefined block
device mappings, which is useful for EBS-only instance types.
@timonwong timonwong force-pushed the aws-ephemeral-no-device-support branch from f8b2eea to 5748821 Compare December 7, 2016 06:24
@timonwong
Copy link
Contributor Author

@kwilczynski I just added a check which requires virtual_name if no_device is falsy.

@kwilczynski
Copy link
Contributor

@timonwong hi there! Looks good! Anything else to add or left to do?

@timonwong timonwong changed the title [WIP] provider/aws: Add "no_device" support to ephemeral block devices provider/aws: Add "no_device" support to ephemeral block devices Dec 8, 2016
@timonwong
Copy link
Contributor Author

@kwilczynski I think it's Ok to remove WIP tag now :)

@stack72
Copy link
Contributor

stack72 commented Dec 8, 2016

Hi @timonwong

(and @kwilczynski!)

Thanks to you both for the work here - this LGTM! :)

Paul

@stack72 stack72 merged commit 80afc67 into hashicorp:master Dec 8, 2016
@timonwong timonwong deleted the aws-ephemeral-no-device-support branch December 8, 2016 13:51
@tinder-jlee
Copy link

Doesn't it need to also support no_device for device blocks definition in aws_launch_configuration?
https://www.terraform.io/docs/providers/aws/r/launch_configuration.html#block-devices

The definition is not the same as for aws_instance:
https://www.terraform.io/docs/providers/aws/r/instance.html#block-devices

which i believe should be the same.

@apparentlymart
Copy link
Contributor

Hi @tinder-jlee!

This issue is from a long time ago, prior to the AWS provider development moving to its own repository. In order for it to be seen by that provider's maintainer team, please feel free to open an issue for this over in that repository.

@tinder-jlee
Copy link

@apparentlymart gotcha. i'll create an issue there. thanks!

@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE: support for no_device in aws_instance ephemeral_block_device
5 participants