Skip to content

Sceptre/sceptre-date-resolver

Repository files navigation

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"

About

A Sceptre resolver to retrieve the current datetime

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages