Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Ability to generate the current date (in UTC) in parameter files #31

Closed
joffotron opened this issue Jul 28, 2017 · 1 comment
Closed
Assignees

Comments

@joffotron
Copy link
Collaborator

e.g. for Cfn template:

Resources:
  BKAgentSleepAtNight:
    Type: AWS::AutoScaling::ScheduledAction
    Condition: UseAutoscaling
    Properties:
      AutoScalingGroupName: $(AgentAutoScaleGroup)
      DesiredCapacity: 0
      MinSize: 0
      MaxSize: 2
      StartTime: "2017-07-28T09:00:00Z"
      Recurrence: "0 9 * * MON-FRI"

If that date is in the past then Cfn will tell you to go away.

We could have { "MyParam": "<<currentDate: yyyy-mm-dd>>"} or something similar.

Leaving this mostly as a note to myself ;)

@SomeoneWeird
Copy link
Owner

closed in #33

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants