From 78347e12a37262a8c30768ef25dc6ad0a9735f1d Mon Sep 17 00:00:00 2001 From: dgilbert82 Date: Thu, 26 Oct 2017 10:43:38 +0100 Subject: [PATCH] No need to set a default tenancy and it prevents the creation of spot lcs (#31270) The full traceback is: Traceback (most recent call last): File "/tmp/ansible_82dk2ynr/ansible_module_ec2_lc.py", line 317, in create_launch_config connection.create_launch_configuration(**launch_config) File "/usr/lib/python3.6/site-packages/botocore/client.py", line 312, in _api_call return self._make_api_call(operation_name, kwargs) File "/usr/lib/python3.6/site-packages/botocore/client.py", line 601, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the CreateLaunchConfiguration operation: Placement tenancy is not supported for spot instances. fatal: [localhost]: FAILED! => { "changed": false, "error": { "code": "ValidationError", "message": "Placement tenancy is not supported for spot instances.", "type": "Sender" }, "failed": true, --- lib/ansible/modules/cloud/amazon/ec2_lc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_lc.py b/lib/ansible/modules/cloud/amazon/ec2_lc.py index 43478406372..377613ec9b7 100755 --- a/lib/ansible/modules/cloud/amazon/ec2_lc.py +++ b/lib/ansible/modules/cloud/amazon/ec2_lc.py @@ -394,7 +394,7 @@ def main(): classic_link_vpc_security_groups=dict(type='list'), classic_link_vpc_id=dict(), vpc_id=dict(), - placement_tenancy=dict(default='default', choices=['default', 'dedicated']) + placement_tenancy=dict(choices=['default', 'dedicated']) ) )