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
Console Error is
Error:
Configuration error:
at 'provider.iam.role.statements.1.Action.0': must be string
at 'provider.iam.role.statements.1.Action.1': must be string
IAM actions are on the form service:action. In your example however, you have a space after the colon, making this into an object per the YAML specification. If converting your YAML to JSON, you would see that it has become:
provider:
name: aws
runtime: nodejs12.x
stage: dev
region: ap-south-1
iam:
role:
statements:
- Effect: Allow
Action:
- excute-api:Invoke
Resource: arn:aws:execute-api:::*
- Effect: Allow
Action:
- dynamodb: UpdateItem
- dynamodb: PutItem
Resource: arn:aws*****************
Console Error is
Error:
Configuration error:
at 'provider.iam.role.statements.1.Action.0': must be string
at 'provider.iam.role.statements.1.Action.1': must be string
Learn more about configuration validation here: http://slss.io/configuration-validation
The text was updated successfully, but these errors were encountered: