diff --git a/lib/ansible/modules/cloud/amazon/cloudformation.py b/lib/ansible/modules/cloud/amazon/cloudformation.py index cdc24bbc7d..580ec55b24 100644 --- a/lib/ansible/modules/cloud/amazon/cloudformation.py +++ b/lib/ansible/modules/cloud/amazon/cloudformation.py @@ -329,7 +329,7 @@ def main(): stack_policy_body=stack_policy_body, template_url=template_url, disable_rollback=disable_rollback, - capabilities=['CAPABILITY_IAM'], + capabilities=['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM'], **kwargs) operation = 'CREATE' except Exception as err: @@ -352,7 +352,7 @@ def main(): stack_policy_body=stack_policy_body, disable_rollback=disable_rollback, template_url=template_url, - capabilities=['CAPABILITY_IAM']) + capabilities=['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM']) operation = 'UPDATE' except Exception as err: error_msg = boto_exception(err)