Skip to content

Commit

Permalink
ec2_ami: add support for uefi-preferred boot mode (#2253) (#2254)
Browse files Browse the repository at this point in the history
This is a backport of PR #2253 as merged into main (edb41e9).
SUMMARY

Add support for uefi-preferred boot mode
Fixes #2064

ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ec2_ami
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
  • Loading branch information
patchback[bot] authored Aug 28, 2024
1 parent dbcb0cc commit b471b99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- ec2_ami - Add support for uefi-preferred boot mode (https://github.com/ansible-collections/amazon.aws/pull/2253).
5 changes: 3 additions & 2 deletions plugins/modules/ec2_ami.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@
description:
- The boot mode of the AMI.
- See the AWS documentation for more detail U(https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html).
- Support for V(uefi-preferred) was added in release 8.2.0.
type: str
choices: ['legacy-bios', 'uefi']
choices: ['legacy-bios', 'uefi', 'uefi-preferred']
version_added: 5.5.0
tpm_support:
description:
Expand Down Expand Up @@ -984,7 +985,7 @@ def main():
argument_spec = dict(
architecture={"default": "x86_64"},
billing_products={"type": "list", "elements": "str"},
boot_mode={"type": "str", "choices": ["legacy-bios", "uefi"]},
boot_mode={"type": "str", "choices": ["legacy-bios", "uefi", "uefi-preferred"]},
delete_snapshot={"default": False, "type": "bool"},
description={"default": ""},
device_mapping={"type": "list", "elements": "dict", "options": mapping_options},
Expand Down

0 comments on commit b471b99

Please sign in to comment.