Skip to content

feat(cfn-guard): Initial implementation of date functions - #561

Merged
dannyvassallo merged 2 commits into
aws-cloudformation:mainfrom
dannyvassallo:date_functions
Oct 8, 2024
Merged

dannyvassallo merged 2 commits into
aws-cloudformation:mainfrom
dannyvassallo:date_functions

Conversation

@dannyvassallo

Copy link
Copy Markdown
Contributor

Issue #, if available:

#521

Description of changes:

Introduces 2 date functions to Guard:

  1. parse_epoch parses dates from templates into Unix timestamps.
  2. now returns the current Unix timestamp.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@justinmburrous

Copy link
Copy Markdown

@dannyvassallo Yes this looks exactly like what we were looking for. Sorry for the delay here.

@justinmburrous justinmburrous left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem to be what we are looking for for timestamp parsing.

@dannyvassallo
dannyvassallo merged commit 959e6c0 into aws-cloudformation:main Oct 8, 2024
@dannyvassallo
dannyvassallo deleted the date_functions branch October 8, 2024 14:33
joshfried-aws pushed a commit to joshfried-aws/cloudformation-guard that referenced this pull request Nov 22, 2024
…ormation#561)

* feat(cfn-guard): Initial implementation of date functions

* feat(cfn-guard): use serde_json in test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants