Amplify and MTLS - How?

0

Hello, ive gone through these AWS docs regarding securing API gatways using MTLS which have you create your own CA, cert, key, etc, sign it and then create the PEM that is used alongside the truststore for MTLS - https://aws.amazon.com/blogs/compute/introducing-mutual-tls-authentication-for-amazon-api-gateway/

That all works great... between my development laptop and my api gateway... Now im trying to get Amplify involved in the scenario.

I've read elsewhere in the AWS docs on a deep hunt one night Amplify is a service that MTLS can be used with. The end goal is to protect a critical API that absolutely cannot withstand abuse. MTLS seems like a good way to do this.

How excatly do I go about replicating the development machine steps that worked to lock down the gateway with Amplify instead of just my local machine?

Is the path through using this pem/key I created with my Amplify sites code(this is self signed isnt it?) or do I need to gather the Amplify sites truststore/key and use that? Not really clear on how to proceed. Thanks!

  • Bump........

1개 답변
0

Considering your use case is to protect a critical API that absolutely cannot withstand abuse, you may want to take a look at integrating AWS WAF with Amplify. Sample code can be found here --> https://github.com/aws-samples/aws-cdk-amplify-with-waf.

However, you can override the API resources that are created by Amplify, you should be able to configure with mTLS but not 100% certain. Amplify uses AWS CDK to create resources. --> https://docs.amplify.aws/cli/restapi/override/.

Hopes this helps.

profile pictureAWS
aaron_l
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠