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

[PR #2026/096b0267 backport][stable-7] add support for host option in placement.tenancy #2061

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- ec2_instance - add support for ``host`` option in placement.tenancy (https://github.com/ansible-collections/amazon.aws/pull/2026).
8 changes: 5 additions & 3 deletions plugins/modules/ec2_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,12 @@
type: int
required: false
tenancy:
description: Type of tenancy to allow an instance to use. Default is shared tenancy. Dedicated tenancy will incur additional charges.
description:
- Type of tenancy to allow an instance to use. Default is shared tenancy. Dedicated tenancy will incur additional charges.
- Support for I(tenancy=host) was added in amazon.aws 7.6.0.
type: str
required: false
choices: ['dedicated', 'default']
choices: ['dedicated', 'default', 'host']
license_specifications:
description:
- The license specifications to be used for the instance.
Expand Down Expand Up @@ -2307,7 +2309,7 @@ def main():
host_id=dict(type="str"),
host_resource_group_arn=dict(type="str"),
partition_number=dict(type="int"),
tenancy=dict(type="str", choices=["dedicated", "default"]),
tenancy=dict(type="str", choices=["dedicated", "default", "host"]),
),
),
instance_initiated_shutdown_behavior=dict(type="str", choices=["stop", "terminate"]),
Expand Down
Loading