diff --git a/lib/ansible/modules/cloud/amazon/lambda.py b/lib/ansible/modules/cloud/amazon/lambda.py index 89f896ec34..78f761d7eb 100644 --- a/lib/ansible/modules/cloud/amazon/lambda.py +++ b/lib/ansible/modules/cloud/amazon/lambda.py @@ -228,7 +228,7 @@ def main(): ['zip_file', 's3_bucket'], ['zip_file', 's3_object_version']] - required_together = [['s3_key', 's3_bucket', 's3_object_version'], + required_together = [['s3_key', 's3_bucket'], ['vpc_subnet_ids', 'vpc_security_group_ids']] module = AnsibleModule(argument_spec=argument_spec,