- Generate a service account with DNS admin rights and download the json.
- Generate a service for unauthenticated calls
- Create a cloud function and upload the index.js, package.json and service acount json
- 128MB RAM is enough
- HTTP trigger should be set
- Unauthenticated call should be set
-
- service account should be selected
- Add the following environment variables:
- PROJECT_NAME: name of the project, where the DNS is defined
- RECORD_NAME: name of the DNS record, what should be updated. A
.
is required in the end, like:home.example.com.