Author: Henry

Issue: when I subscribe HTTPS endpoints to my SNS topics, the service doesn’t call the endpoint to allow end users to confirm the subscription

Please review below points: How do you subscribe HTTPS endpoints to your SNS topics? (Amazon SNS console [1], the sns-subscribe command [2], or the Subscribe API action [3]) Do you see any errors during this process? Could you please confirm the HTTPS endpoints have the capability to handle the HTTP POST requests that Amazon SNS uses to send the subscription…

Read More »

SNS Push Notification is not working

Failure to display push notification could be due to various reasons. The most common case is the application has NOT enabled push notification on the device. You could enable this by going into Settings > Notifications on the device. If the notifications are enabled, you could try and install the application on another device to see if the notification goes…

Read More »

getting an error “Role xxx trusts too many services, expected only 1” when add SQS queue as a destination for my Lambda function

When I add SQS queue as a destination for my Lambda function, I am getting an error “Role xxx trusts too many services, expected only 1”. How can I solve this issue? // troubleshooting In addition to the error message, I noticed there is an information message saying “Your function’s execution role doesn’t have permission to send result to the…

Read More »

AWS SAM doesn’t support these API Gateway extensions

As you know, API Gateway extensions are extensions to the OpenAPI specification that support the AWS-specific authorization and API Gateway-specific API integrations. They support the AWS-specific authorization and API Gateway-specific API integrations for REST APIs and HTTP APIs. However please note AWS SAM supports a subset of API Gateway extensions only. If you want to use some API Gateway extensions…

Read More »

How do I know the unused IP addresses?

At the moment we don’t have any APIs to list unused IP addresses of a subnet directly unfortunately. However you can use “describe-network-interfaces” API to get a list of the IP addresses which are already in use in a subnet. Then you can get a list of unused internal IP addresses by subtracting those occupied IP addresses from all available…

Read More »

Amplify schema: How can I implement an authorization based on a @connected model’s field?

Background: This is similar to the model definition from the amplify documentation on the @auth directive: Instead, I’d like to do authorization based on a @connected model’s field, similar to the following: Solution: It seems a workaround by adding a join model (it is called DraftLink in my lab) to encode the relationship between Draft and editor. Step 1: Create…

Read More »