From e9ed8d1616adc16127c3413fc18371bb81807bb8 Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Wed, 14 Dec 2022 15:16:59 +0000 Subject: [PATCH 1/4] feat(website): Vercel introductory blog post --- website/pages/blog/_meta.json | 3 +- .../announcing-the-vercel-source-plugin.md | 76 +++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 website/pages/blog/announcing-the-vercel-source-plugin.md diff --git a/website/pages/blog/_meta.json b/website/pages/blog/_meta.json index a271064596892b..01935d43263e72 100644 --- a/website/pages/blog/_meta.json +++ b/website/pages/blog/_meta.json @@ -64,5 +64,6 @@ "introducing-the-gandi-source-plugin": "Introducing The Gandi Source Plugin", "announcing-cloudquery-bigquery-destination": "Announcing the CloudQuery BigQuery Destination Plugin", "analysing-gcp-cost-with-bigquery-and-cq": "Analysing GCP Cost with BigQuery and CloudQuery", - "introducing-the-tailscale-source-plugin": "Introducing The Tailscale Source Plugin" + "introducing-the-tailscale-source-plugin": "Introducing The Tailscale Source Plugin", + "announcing-the-vercel-source-plugin": "Announcing the Vercel Source Plugin" } diff --git a/website/pages/blog/announcing-the-vercel-source-plugin.md b/website/pages/blog/announcing-the-vercel-source-plugin.md new file mode 100644 index 00000000000000..c5fb4c62939610 --- /dev/null +++ b/website/pages/blog/announcing-the-vercel-source-plugin.md @@ -0,0 +1,76 @@ +--- +title: Announcing The Vercel Source Plugin +tag: announcement +date: 2022/12/14 +description: >- +CloudQuery is an open-source, extensible framework that gives you a +single-pane-of-glass to your cloud-infrastructure using SQL. Today, we are +happy to announce the release of the Vercel source plugin. +author: kemal +--- + +import { BlogHeader } from "../../components/BlogHeader" + + + +CloudQuery is an open-source, extendable framework that gives you a single-pane-of-glass to your cloud-infrastructure using SQL. Today, we are happy to announce the release of the Gandi source plugin for CloudQuery. + +Vercel is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration. + +CloudQuery now supports pulling resources from [Vercel](https://vercel.com/) using Vercel's API. + +Take a look at our [Configuration](/docs/plugins/sources/vercel/configuration) section to configure required credentials for the plugin. + +Below are some real world query examples to get you started. + +## Detect domain registrations that will expire soon + +If you have more than just one domain, keeping track of which one will expire soon can be a problem. Here's a query to check how many days there are left on each registration: + +```sql +select name, expires_at, date_trunc('day', expires_at - current_timestamp) as days_left from vercel_domains where (expires_at - interval '90 day') < current_timestamp order by 1; +``` + +This query would output a table of domain names that are going to expire within the next 90 days: + +``` + name | expires_at | days_left +----------------+----------------------+----------- + yourdomain.co | 2023-01-28T08:09:41Z | 44 days + yourdomain.com | 2023-01-31T15:58:08Z | 47 days +(2 rows) +``` + +You can now put this in a dashboard or set up an alert on it. + +## Get all Vercel team members + +Using the query below you can list all Vercel team members across multiple teams. + +```sql +select t.name AS team, u.username, u.name, u.role from vercel_teams t join vercel_team_members u on u.team_id=t.id order by 1, 2; +``` + +This will return list of users per team and their role: + +``` + name | username | name | role +------------+--------------+------------+-------- + yourteam | user1 | User Name | MEMBER + yourteam | user2 | | MEMBER + yourteam | user3 | Another User | OWNER +(3 rows) +``` + + +## Get a list of name servers + +```sql +select name, intended_nameservers, custom_nameservers, nameservers from vercel_domains order by 1; +``` + +This query will return a list of domains and their name servers. + +## What's next + +We are going to continue expanding the Vercel source plugin, adding support for more resources. Interested in seeing another plugin? Check out [Creating a New Plugin](/docs/developers/creating-new-plugin) and/or open an issue on our [GitHub](https://github.com/cloudquery/cloudquery). From c72582cb12560b33864b56fec55862d08bf92e90 Mon Sep 17 00:00:00 2001 From: Kemal <223029+disq@users.noreply.github.com> Date: Wed, 14 Dec 2022 15:24:01 +0000 Subject: [PATCH 2/4] Update website/pages/blog/announcing-the-vercel-source-plugin.md Co-authored-by: Erez Rokah --- website/pages/blog/announcing-the-vercel-source-plugin.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/pages/blog/announcing-the-vercel-source-plugin.md b/website/pages/blog/announcing-the-vercel-source-plugin.md index c5fb4c62939610..a4218335cfe6e6 100644 --- a/website/pages/blog/announcing-the-vercel-source-plugin.md +++ b/website/pages/blog/announcing-the-vercel-source-plugin.md @@ -3,9 +3,9 @@ title: Announcing The Vercel Source Plugin tag: announcement date: 2022/12/14 description: >- -CloudQuery is an open-source, extensible framework that gives you a -single-pane-of-glass to your cloud-infrastructure using SQL. Today, we are -happy to announce the release of the Vercel source plugin. + CloudQuery is an open-source, extensible framework that gives you a + single-pane-of-glass to your cloud-infrastructure using SQL. Today, we are + happy to announce the release of the Vercel source plugin. author: kemal --- From 43e21e493c7e2a95d53869354c693c8a9510bffa Mon Sep 17 00:00:00 2001 From: Kemal <223029+disq@users.noreply.github.com> Date: Wed, 14 Dec 2022 15:48:35 +0000 Subject: [PATCH 3/4] Update website/pages/blog/announcing-the-vercel-source-plugin.md Co-authored-by: Erez Rokah --- website/pages/blog/announcing-the-vercel-source-plugin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/blog/announcing-the-vercel-source-plugin.md b/website/pages/blog/announcing-the-vercel-source-plugin.md index a4218335cfe6e6..e89d1af2368f55 100644 --- a/website/pages/blog/announcing-the-vercel-source-plugin.md +++ b/website/pages/blog/announcing-the-vercel-source-plugin.md @@ -21,7 +21,7 @@ CloudQuery now supports pulling resources from [Vercel](https://vercel.com/) usi Take a look at our [Configuration](/docs/plugins/sources/vercel/configuration) section to configure required credentials for the plugin. -Below are some real world query examples to get you started. +Below are some query examples to get you started. ## Detect domain registrations that will expire soon From 58307581380c37e317abfeb6a8a299eafafaae0c Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Wed, 14 Dec 2022 15:50:47 +0000 Subject: [PATCH 4/4] CR --- website/pages/blog/announcing-the-vercel-source-plugin.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/pages/blog/announcing-the-vercel-source-plugin.md b/website/pages/blog/announcing-the-vercel-source-plugin.md index e89d1af2368f55..9d36012b1f54ca 100644 --- a/website/pages/blog/announcing-the-vercel-source-plugin.md +++ b/website/pages/blog/announcing-the-vercel-source-plugin.md @@ -13,9 +13,9 @@ import { BlogHeader } from "../../components/BlogHeader" -CloudQuery is an open-source, extendable framework that gives you a single-pane-of-glass to your cloud-infrastructure using SQL. Today, we are happy to announce the release of the Gandi source plugin for CloudQuery. +CloudQuery is an open-source, extendable framework that gives you a single-pane-of-glass to your cloud-infrastructure. Today, we are happy to announce the release of the Vercel source plugin for CloudQuery. -Vercel is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration. +If you're not familiar with the Vercel platform, we recommend you visit their [homepage](https://vercel.com/). CloudQuery now supports pulling resources from [Vercel](https://vercel.com/) using Vercel's API. @@ -41,7 +41,8 @@ This query would output a table of domain names that are going to expire within (2 rows) ``` -You can now put this in a dashboard or set up an alert on it. +Vercel also provides an [auto-renewal facility](https://vercel.com/docs/concepts/projects/domains/renew-a-domain) which will automatically renew your domain registration when it's about to expire. + ## Get all Vercel team members