Unstable work in Progress
The module will use the Open API Initiative (OAI) specification, formerly known as "The Swagger Specification" along with AWS integration extensions to define the APIs.
- ansible
- boto3
- swagger_spec_validator (optional but recommended for validation)
- importlib (only for running tests on < python 2.7)
Gathers facts related to AWS API Gateway
> ansible localhost -m api_gw_facts
Manages AWS API Gateway resources
- hosts: localhost
gather_facts: no
vars:
state: present
api_gw_spec_file: /path/to/swagger/spec/LambdaMicroservice-Dev.yaml
tasks:
- name: AWS API Gateway
api_gw:
state: "{{ state | default('present') }}"
api_id: '*'
# deploy_api: True
swagger_spec: "{{ api_gw_spec_file }}"
- name: show results
debug: var=api_gw_facts