The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

504344 (14) [Avatar] Offline
#1
screen1.JPG
[ 57 KB ]
When I do insert provided input for policy it leads to validation error
"The actions in your policy do not support resource-level permissions and require you to choose All resources"

See screenshot. So there must be something wrong now with the policy even if I have copied and modified as in the book written down.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "mobileanalytics:PutEvents",
                "cognito-sync:*"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "lambda:InvokeFunction",
            "Resource": "arn:aws:lambda:eu-central-1:123456789987:function:greetingsOnDemand"
        }
    ]
}
DeMoehn (10) [Avatar] Offline
#2
Hello,

you need to put anything after "Action" and after "Resource" in []