Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 558 Bytes

File metadata and controls

17 lines (12 loc) · 558 Bytes

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.