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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page