AWS STS temporary credentials InvokeFunction lambda not working

I’m issuing an STS token for a user interface that includes the following statement for lambda permissions: { “Sid” : “AllowUserInvokeLambda”, “Action”: [ “lambda:InvokeAsync”, “lambda:InvokeFunction” ], “Effect”: “Allow”, “Resource”: [ “arn:aws:lambda:us-east-2:*:function:CreateThumbnail”, “arn:aws:lambda:us-east-2:*:function:ImageScanner” ] }, When I try to invoke the function from the aws-sdk.js in the browser, I get back an error with the message:…

Details

A string is considered balanced when every letter in the string appears both in uppercase and lowercase

For example, CATattac is balanced (a, c, t occur in both cases). Madam is not (a, d only appear in lowercase). Write a function that given a string returns the shortest balanced substring of that string. Can this be solved with a sliding window approach? Update: More examples “azABaabza” returns “ABaab” “TacoCat” returns -1 (not…

Details

Host file entry for Windows Docker Container’s internal IP returns 404 only in Chrome. Works in Firefox and IE

We have a entry in the Windows 10 Host’s host file. 192.168.2.138 sub.site.com 192.168.2.138 is the docker’s container IP address. The site is works in Firefox, Microsoft Edge and Internet Explorer 11. The url is http://sub.site.com When we try to use the same URL in chrome it instantly returns a 404. The requested resource is…

Details