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

No role creating when using referenced json #44

Open
simon-dk opened this issue Jun 16, 2020 · 0 comments
Open

No role creating when using referenced json #44

simon-dk opened this issue Jun 16, 2020 · 0 comments

Comments

@simon-dk
Copy link

In my serverless.yml file I have two imported functions:

functions:
   - ${file(./test.json)}
   - ${file(./test.yml)}

Both are identical (different function names) but the function referenced in test.json only gets the global iamRole, while the .yml creates a role as expected.

//// test.json

{
  "convert": {
    "handler": "test.handler",
    "iamRoleStatements:": [
      {
        "Effect": "Allow",
        "Action": ["s3:GetObject"],
        "Resource": [
          "arn:aws:s3:::${cf:S3Stack-${self:custom.stage}.bucket}/*"        ]
      }
    ]
  }
}

I can't find any logical explanation for this, but would like to hear if this is fixable - i am one of those people who prefer json over yml :)

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