diff --git a/plugins/modules/ec2_instance.py b/plugins/modules/ec2_instance.py index 858e652212c..c6c40e1ce38 100644 --- a/plugins/modules/ec2_instance.py +++ b/plugins/modules/ec2_instance.py @@ -851,11 +851,6 @@ returned: always type: str sample: default - host_id: - description: The ID of the Dedicated Host on which the instance resides. - returned: always - type: str - sample: "" additional_info: description: Reserved. returned: always @@ -1303,16 +1298,6 @@ def build_top_level_options(params): spec["Placement"]["GroupName"] = str(params.get("placement_group")) else: spec.setdefault("Placement", {"GroupName": str(params.get("placement_group"))}) - if params.get("host_id"): - if "Placement" in spec: - spec["Placement"]["HostId"] = str(params.get("host_id")) - else: - spec.setdefault("Placement", {"HostId": str(params.get("host_id"))}) - if params.get("availability_zone"): - if "Placement" in spec: - spec["Placement"]["AvailabilityZone"] = str(params.get("availability_zone")) - else: - spec.setdefault("Placement", {"AvailabilityZone": str(params.get("availability_zone"))}) if params.get("ebs_optimized") is not None: spec["EbsOptimized"] = params.get("ebs_optimized") if params.get("instance_initiated_shutdown_behavior"): @@ -2157,7 +2142,6 @@ def main(): ), ), additional_info=dict(type='str'), - host_id=dict(type="str"), ) # running/present are synonyms # as are terminated/absent