Skip to main content

A Sceptre resolver to retrieve the current datetime

Project description

Overview

The purpose of this resolver is to retrieve the current datetime

Install

pip install sceptre-date-resolver

Available Resolvers

date

Fetches the current datetime in an ISO 8601 format. The default format is "%Y-%m-%d %H:%M:%S".

Syntax:

parameter|sceptre_user_data:
    <name>: !date

Examples:

Retrieve date (using default format) and pass it to a cloudformation parameter:

parameters:
    now: !date

Retrieve the date (in MM/DD/YYYY format) and pass it to a cloudformation parameter:

parameters:
    now: !date "%m/%d/%Y"

Retrieve the time (in H:M:S format) and pass it to a cloudformation parameter:

parameters:
    now: !date "%H:%M:%S"

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-date-resolver-1.0.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

sceptre_date_resolver-1.0.2-py2.py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 2 Python 3

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