list services which support Google VPC Service Controls
Project description
Google List VPC SC supported services
Scrapes the web page https://cloud.google.com/vpc-service-controls/docs/supported-products. This page describes which Google Cloud Platform services support VPC SC and at which support level: ga, beta or preview.
The utility prints out a Terraform style dictionary of string lists. The key is the status of the service in lowercase, the value an array of service names in that status. For example:
list-vpc-sc-supported-services
{
beta = [
"adsdatahub.googleapis.com",
"cloudbuild.googleapis.com",
...
"lifesciences.googleapis.com",
"transcoder.googleapis.com",
]
ga = [
"accessapproval.googleapis.com",
"aiplatform.googleapis.com",
...
"vpcaccess.googleapis.com",
]
preview = [
"networkmanagement.googleapis.com",
...
]
}
updating Hashicorp template
You can programmatically update this template. If you have a variable vpc_sc_services
in HCL:
locals {
vpc_sc_services = {}
}
install hcledit and type:
hcledit attributes set locals.vpc_sc_services \
"$(list-vpc-sc-supported-services)" \
--file locals.tf \
--update
Caveats
- It is a scraper, so your milage may vary. We are looking forward to a proper API.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for list-vpc-sc-supported-services-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db1c48fe1532619fceea634dd23e435114c8c5964600a0553430b9c451ac06f |
|
MD5 | a8fce97fcf44ea805bb0e77ef4c079f7 |
|
BLAKE2b-256 | ca49f16a0da874ccbe8722901889fd3188757ae7bf26d5c6302dffa2a89e6426 |