Skip to main content

A Sceptre resolver to make requests from REST API endpoints

Project description

sceptre-request-resolver

A Sceptre resolver to make requests from REST API endpoints.

Motivation

There are some pretty useful REST API endpoints on the internet. The endpoints can return lots of different types of data, typically in JSON format. This simple resolver can retrieve that data and pass it to Sceptre parameters or scepter_user_data parameters.

Installation

To install directly from PyPI

pip install sceptre-request-resolver

To install from this git repo

pip install git+https://github.com/Sceptre/sceptre-request-resolver.git

Usage/Examples

parameters|sceptre_user_data:
  <name>: !request <API ENDPOINT>
parameters|sceptre_user_data:
  <name>: !request
    url: <API ENDPOINT>

Note: This resolver always returns a string.

Example

Simple request:

parameters:
  wisdom: !request 'https://ron-swanson-quotes.herokuapp.com/v2/quotes'
parameters:
  wisdom: !request
    url: https://ron-swanson-quotes.herokuapp.com/v2/quotes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sceptre_request_resolver-0.3.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

sceptre_request_resolver-0.3.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file sceptre_request_resolver-0.3.0.tar.gz.

File metadata

  • Download URL: sceptre_request_resolver-0.3.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Linux/5.15.0-1030-aws

File hashes

Hashes for sceptre_request_resolver-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c15b0657c2983ba40f57cbb7cb24144bc580f0505e1c64b7a349b955133a7189
MD5 1e365ac35073db48d4eacf04dd012a24
BLAKE2b-256 61b55690fb71cc628f9ba50a033916bdd80253a730418951ecbdd049a41bbed1

See more details on using hashes here.

File details

Details for the file sceptre_request_resolver-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sceptre_request_resolver-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1434848cce342ec086b091313f40ad4619a5af91c899d0cf673b42e2f6714c8
MD5 d16009f69dc0c18c7ff6ff8060b19927
BLAKE2b-256 4ec4ca916e7b7d4994b0ed5bc77bcdcd2cd72873506bc5ec4b79432da8a1306d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page