Hi,
I have env.yml
file with
appIconsBucket: dev-portal-icons
and serverless.yml
with
env: ${file(./env.yml)}
provider:
...
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:PutObject"
- "s3:GetObject"
- "s3:ReplicateObject"
Resource:
- "arn:aws:s3:::${self:env.appIconsBucket}/*"
And sls
command outputs this error: Trying to populate non string value into a string for variable ${self:env.appIconsBucket}. Please make sure the value of the property is a string.
But I don’t understand what’s wrong, could anyone point me to the problem? I use 1.0.0-rc1