Native YAML - cloud/serverless (#3618)
This commit is contained in:
parent
d11a5bd492
commit
c284125e66
1 changed files with 6 additions and 4 deletions
|
@ -60,11 +60,13 @@ author: "Ryan Scott Brown @ryansb"
|
|||
|
||||
EXAMPLES = """
|
||||
# Basic deploy of a service
|
||||
- serverless: service_path={{ project_dir }} state=present
|
||||
- serverless:
|
||||
service_path: '{{ project_dir }}'
|
||||
state: present
|
||||
|
||||
# Deploy specific functions
|
||||
- serverless:
|
||||
service_path: "{{ project_dir }}"
|
||||
service_path: '{{ project_dir }}'
|
||||
functions:
|
||||
- my_func_one
|
||||
- my_func_two
|
||||
|
@ -73,14 +75,14 @@ EXAMPLES = """
|
|||
- serverless:
|
||||
stage: dev
|
||||
region: us-east-1
|
||||
service_path: "{{ project_dir }}"
|
||||
service_path: '{{ project_dir }}'
|
||||
register: sls
|
||||
# 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
|
||||
# well as stack events and outputs
|
||||
- cloudformation_facts:
|
||||
region: us-east-1
|
||||
stack_name: "{{ sls.service_name }}"
|
||||
stack_name: '{{ sls.service_name }}'
|
||||
stack_resources: true
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in a new issue