You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
Hello @aap69, could you please provide a full template sample, preferably within a code block, as I have attempted to reproduce this issue by cleaning up your example a bit and I ended up with:
Unfortunately, the above does not trigger the issue you described however, it does reflect another issue in regards to the handling of the Policies property and we should probably open up a separate issue about that.
I have tried even inserting a Role myself within the definition however that did not work either and, apparently, that property is not supported by SAM Globals so even though I'm 100% sure that the issue is valid, without a full template sample, I can't easily figure out where it's coming from...
When linting an AWS SAM output file, we get this error:
Error: No such property type AWS::Serverless::Function.#Role
Resource definition:
RegisterErrorLambdaFunction:
DependsOn: RegisterErrorStackLogGroup
Properties:
CodeUri: s3://tri-deploy/lambda/api-register/1e0866c6ab4fafa3e64718bc35a3cef2
Environment:
Variables:
ALERT_SNS_TOPIC:
Ref: RegisterAlertSnsTopic
LOG_LEVEL:
Ref: logLevel
Handler: Lambda-DeviceRegistration-ErrorEndState::Lambda_DeviceRegistration_ErrorEndState.ErrorStateFunction::FunctionHandler
Policies:
- Statement:
- Action:
- sns:Publish
Effect: Allow
Resource:
Fn::Sub: arn:aws:sns:${AWS::Region}:${AWS::AccountId}:${RegisterAlertSnsTopic.TopicName}
Runtime: dotnetcore2.1
Timeout: 300
Type: AWS::Serverless::Function
Property Role is a valid property
The text was updated successfully, but these errors were encountered: