Native YAML - cloud/serverless (#3618)

This commit is contained in:
Fabio Alessandro Locati 2016-12-01 19:04:34 +00:00 committed by Matt Clay
parent d11a5bd492
commit c284125e66

View file

@ -60,11 +60,13 @@ author: "Ryan Scott Brown @ryansb"
EXAMPLES = """ EXAMPLES = """
# Basic deploy of a service # Basic deploy of a service
- serverless: service_path={{ project_dir }} state=present - serverless:
service_path: '{{ project_dir }}'
state: present
# Deploy specific functions # Deploy specific functions
- serverless: - serverless:
service_path: "{{ project_dir }}" service_path: '{{ project_dir }}'
functions: functions:
- my_func_one - my_func_one
- my_func_two - my_func_two
@ -73,14 +75,14 @@ EXAMPLES = """
- serverless: - serverless:
stage: dev stage: dev
region: us-east-1 region: us-east-1
service_path: "{{ project_dir }}" service_path: '{{ project_dir }}'
register: sls register: sls
# The cloudformation stack is always named the same as the full service, so the # The cloudformation stack is always named the same as the full service, so the
# cloudformation_facts module can get a full list of the stack resources, as # cloudformation_facts module can get a full list of the stack resources, as
# well as stack events and outputs # well as stack events and outputs
- cloudformation_facts: - cloudformation_facts:
region: us-east-1 region: us-east-1
stack_name: "{{ sls.service_name }}" stack_name: '{{ sls.service_name }}'
stack_resources: true stack_resources: true
""" """