Accessing Amazon AWS S3 using API Gateway with Custom Authorizer

Maksud dan tujuan judul adalah jika kita ingin meng-upload dan men-download dari S3 tetapi hanya bisa diakses oleh kalangan tertentu dan juga tidak menggunakan access dan secret key AWS.

Custom Authorization Workflow

Silahkan baca:

  1. Create an API as an Amazon S3 Proxy –
    API Gateway
  2. Making Requests Using the REST API – Amazon Simple Storage Service
  3. Use Amazon API Gateway Custom Authorizers –
    API Gateway
  4. Trust Relationships – Modifying a Role
  5. How to enable CloudWatch logs for API Gateway
  6. Apex lets you build, deploy, and manage AWS Lambda functions with ease
  7. Binary Support for API Integrations with Amazon API Gateway
  8. Access Resources in a VPC from Your Lambda Functions
  9. Configuring an AWS Lambda Function to Access Both Resources in Public Internet and an Amazon VPC

Yang perlu diperhatikan:

  1. Setiap ada changes di API Gateway, selalu lakukan Deploy API.
  2. Aktifkan juga role CloudWatch untuk Log API Gateway.
  3. Untuk akses ke service/resource lokal maka Lambda Function harus di set VPC-nya.