Skip to main content

A Sceptre resolver to retrieve the current datetime

Project description


layout: docs title: Resolvers

Overview

The purpose of this resolver is to retrieve the current datetime

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.

Files for sceptre-date-resolver, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size sceptre_date_resolver-1.0.0-py2.py3-none-any.whl (2.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sceptre-date-resolver-1.0.0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page