https://github.com/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.
https://github.com/yandex-cloud-examples/yc-serverless-apigw-ip-authorizer
api-gateway serverless terraform yandex-cloud yandex-function yandexcloud
Last synced: 3 months ago
JSON representation
How you can implement IP-based authorization to restrict access to your API Gateway resources in Yandex Cloud.
- Host: GitHub
- URL: https://github.com/yandex-cloud-examples/yc-serverless-apigw-ip-authorizer
- Owner: yandex-cloud-examples
- License: apache-2.0
- Created: 2024-03-13T20:19:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-11T11:10:27.000Z (about 1 year ago)
- Last Synced: 2025-06-11T12:25:34.409Z (about 1 year ago)
- Topics: api-gateway, serverless, terraform, yandex-cloud, yandex-function, yandexcloud
- Language: HCL
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```shell
terraform init
```
Apply terraform spec, using your Yandex Cloud folder id and IP address that must have access to your API Gateway:
```shell
terraform apply -var "yc-token=$(yc iam create-token)" -var "folder-id=" -var "allow-from-ip="
```
Open printed gateway-address link in your web browser.