-
Notifications
You must be signed in to change notification settings - Fork 38
Role property for AWS::Serverless::Function reports as invalid #206
Comments
Hey @martysweet, I'm having a look at it now. |
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 I have tried even inserting a |
In regards to the handling of the |
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: