Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Version: 2012-10-17 getting parsed as a date #20

Open
studds opened this issue Jul 29, 2019 · 0 comments
Open

- Version: 2012-10-17 getting parsed as a date #20

studds opened this issue Jul 29, 2019 · 0 comments

Comments

@studds
Copy link
Contributor

studds commented Jul 29, 2019

I've got a template:

Resources:
    Function:
        Type: 'AWS::Serverless::Function'
        Properties:
            CodeUri: code/
            Handler: code.handler
            Runtime: nodejs8.10
            Policies:
                - Version: 2012-10-17
                  Statement:
                      - Effect: Allow
                        Action: 'ses:SendRawEmail'
                        Resource: !Sub 'arn:aws:ses:*:*:identity/*'

When I read it and then write it out again, - Version: 2012-10-17 becomes - Version: 2012-10-17T00:00:00.000Z, which is invalid. - Version: '2012-10-17' is fine, but I'm hoping there's a way to make this more robust, and simply not parse the dates.

Any hints?

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

No branches or pull requests

1 participant