yandex-cloud-examples / yc-serverless-apigw-ip-authorizer

How you can implement IP-based authorization to restrict access to your API Gateway resources in Yandex Cloud.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yandex Cloud demo IP-authorizer for API Gateway

This example demonstrates how you can implement IP-based authorization to restrict access to your API Gateway resources.

Deploying with terraform

Initialize terraform:

terraform init

Apply terraform spec, using your Yandex Cloud folder id and IP address that must have access to your API Gateway:

terraform apply -var "yc-token=$(yc iam create-token)" -var "folder-id=<Your Folder ID>" -var "allow-from-ip=<Allowed IP>"

Open printed gateway-address link in your web browser.

About

How you can implement IP-based authorization to restrict access to your API Gateway resources in Yandex Cloud.

License:Apache License 2.0


Languages

Language:HCL 73.4%Language:JavaScript 26.6%