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

Add ability to override block device mapping configurations for all devices #585

Open
jakauppila opened this issue May 27, 2022 · 0 comments

Comments

@jakauppila
Copy link
Contributor

jakauppila commented May 27, 2022

🙍 Problem Statement

To override configurations within block_device_mappings you need to call out each define and each configuration

block_device_mappings:
  - device_name: /dev/sda
    ebs:
      volume_size: 20
      delete_on_termination: true
  - device_name: /dev/sdb
    ebs:
      volume_type: gp2
      virtual_name: test
      volume_size: 15
      delete_on_termination: true
      snapshot_id: snap-0015d0bc

https://kitchen.ci/docs/drivers/aws/#disk-configuration

It would be great if we could override (or provide defaults) for all devices with a single configuration.

❔ Possible Solution

I'm not sure the best way to combine the configuration in this case, do we need a new block that can provide defaults when building the object?

block_device_mappings_defaults:
    ebs:
      volume_type: gp3
      volume_size: 8
      delete_on_termination: true

⤴️ Describe alternatives you've considered

➕ Additional context

I'd be happy to implement this change if there's agreement on how to define the configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant