Yan Cui's blog articles

0
comment
on 9/18/2021 3:58 PM
AWS AppSync added support for Lambda authorizers on 30th July 2021 and it made it much easier to implement group-based authorization with 3rd party identity services. Group-based auth with AppSync and Cognito I previously wrote about how you can secure multi-tenant applications with AppSync and Cognito. Where you can use custom attributes to capture the tenant … Group-based auth with AppSync Lambda authoriser Read More » Liked this article? Support me on Patreon and get direct help from me via a private[...]
>> Read the full article
.
0
comment
on 6/6/2021 6:29 PM
With API Gateway and Lambda, you can handle client errors gracefully by returning a 4xx response. module.exports.handler = async (event) => { // run validation logic return { statusCode: 400 } } This way, we can communicate clearly to the client that there’s a problem with its request. It also lets the Lambda invocation complete … How to handle client errors gracefully with AppSync and Lambda Read More » Liked this article? Support me on Patreon and get direct help from me via a private Slack channel or[...]
>> Read the full article
.
0
comment
on 5/8/2021 10:27 AM
It’s been two years since I last wrote about Lambda layer and when you should use it. Most of the problem I discussed in that original post still stands: It makes it harder to test your functions locally. You will still need those dependencies to execute your function code locally as part of your tests. … Lambda layer: not a package manager, but a deployment optimization Read More » Liked this article? Support me on Patreon and get direct help from me via a private Slack channel or 1-2-1 mentoring. [...]
>> Read the full article
.
0
comment
on 5/5/2021 6:27 AM
An interesting question came up in a conversation today: “How should I manage the Route53 DNS records in a multi-account environment?” Suppose you have configured an AWS Organization with different accounts for dev, staging and production environments. And you have registered the root domain for your application in the master AWS account. When working with … How to manage Route53 hosted zones in a multi-account environment Read More » Liked this article? Support me on Patreon and get direct help from me[...]
>> Read the full article
.
0
comment
on 4/2/2021 6:09 PM
In the last post I discussed my preferred approach for modelling multi-tenant applications with AppSync and Cognito. This approach supports the common requirements in these applications, where there are a number of distinct roles within each tenant. This approach (and others like it) works great when the tenants are isolated. But what if they are … Building a custom IAM system has made me appreciate AWS IAM even more Read More » Liked this article? Support me on Patreon and get direct help from me via a[...]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper