https://github.com/massdriver-cloud/gcp-subnetwork
https://github.com/massdriver-cloud/gcp-subnetwork
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/massdriver-cloud/gcp-subnetwork
- Owner: massdriver-cloud
- License: mit
- Created: 2022-05-28T22:19:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T16:20:48.000Z (9 months ago)
- Last Synced: 2025-01-23T03:13:49.957Z (5 months ago)
- Language: HCL
- Homepage: https://massdriver.cloud
- Size: 43.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[![Massdriver][logo]][website]
# gcp-subnetwork
[![Release][release_shield]][release_url]
[![Contributors][contributors_shield]][contributors_url]
[![Forks][forks_shield]][forks_url]
[![Stargazers][stars_shield]][stars_url]
[![Issues][issues_shield]][issues_url]
[![MIT License][license_shield]][license_url]GCP Subnetwork includes best-practice GCP reference architecture for networks, IAM management, and observability integrations.
---
## Design
For detailed information, check out our [Operator Guide](operator.md) for this bundle.
## Usage
Our bundles aren't intended to be used locally, outside of testing. Instead, our bundles are designed to be configured, connected, deployed and monitored in the [Massdriver][website] platform.
### What are Bundles?
Bundles are the basic building blocks of infrastructure, applications, and architectures in [Massdriver][website]. Read more [here](https://docs.massdriver.cloud/concepts/bundles).
## Bundle
### Params
Form input parameters for configuring a bundle for deployment.
View
## Properties
- **`gcp_region`** *(string)*: GCP region to create the subnetwork in.
Examples:
```json
"us-east1"
``````json
"us-east4"
``````json
"us-west1"
``````json
"us-west2"
``````json
"us-west3"
``````json
"us-west4"
``````json
"us-central1"
```- **`network`** *(object)*
- **`automatic`** *(boolean)*: Enabling this will automatically select an available CIDR range for your database. Unchecking will require you to specify the CIDR. Default: `True`.
## Examples```json
{
"__name": "Development",
"cidr": "10.0.0.0/22"
}
``````json
{
"__name": "Production",
"cidr": "10.0.0.0/16"
}
``````json
{
"__name": "Wizard",
"cidr": "10.0.0.0/22",
"gcp_region": "us-west2"
}
```### Connections
Connections from other bundles that this bundle depends on.
View
## Properties
- **`gcp_authentication`** *(object)*: GCP Service Account. Cannot contain additional properties.
- **`data`** *(object)*
- **`auth_provider_x509_cert_url`** *(string)*: Auth Provider x509 Certificate URL. Default: `https://www.googleapis.com/oauth2/v1/certs`.Examples:
```json
"https://example.com/some/path"
``````json
"https://massdriver.cloud"
```- **`auth_uri`** *(string)*: Auth URI. Default: `https://accounts.google.com/o/oauth2/auth`.
Examples:
```json
"https://example.com/some/path"
``````json
"https://massdriver.cloud"
```- **`client_email`** *(string)*: Service Account Email.
Examples:
```json
"[email protected]"
``````json
"[email protected]"
```- **`client_id`** *(string)*: .
- **`client_x509_cert_url`** *(string)*: Client x509 Certificate URL.Examples:
```json
"https://example.com/some/path"
``````json
"https://massdriver.cloud"
```- **`private_key`** *(string)*: .
- **`private_key_id`** *(string)*: .
- **`project_id`** *(string)*: .
- **`token_uri`** *(string)*: Token URI. Default: `https://oauth2.googleapis.com/token`.Examples:
```json
"https://example.com/some/path"
``````json
"https://massdriver.cloud"
```- **`type`** *(string)*: . Default: `service_account`.
- **`specs`** *(object)*
- **`gcp`** *(object)*: .
- **`project`** *(string)*
- **`region`** *(string)*: The GCP region to provision resources in.Examples:
```json
"us-east1"
``````json
"us-east4"
``````json
"us-west1"
``````json
"us-west2"
``````json
"us-west3"
``````json
"us-west4"
``````json
"us-central1"
```- **`gcp_global_network`** *(object)*: . Cannot contain additional properties.
- **`data`** *(object)*
- **`grn`** *(string)*: GCP Resource Name (GRN).Examples:
```json
"projects/my-project/global/networks/my-global-network"
``````json
"projects/my-project/regions/us-west2/subnetworks/my-subnetwork"
``````json
"projects/my-project/topics/my-pubsub-topic"
``````json
"projects/my-project/subscriptions/my-pubsub-subscription"
``````json
"projects/my-project/locations/us-west2/instances/my-redis-instance"
``````json
"projects/my-project/locations/us-west2/clusters/my-gke-cluster"
```- **`private_service_connect_ip`** *(string)*: IP address of the Private Service Connect endpoint.
- **`private_services_access`** *(object)*
- **`cidr`** *(string)*: CIDR range of the Private Services Access block.Examples:
```json
"10.100.0.0/16"
``````json
"192.24.12.0/22"
```- **`name`** *(string)*: Name of the Private Services Access block.
- **`specs`** *(object)*
- **`gcp`** *(object)*: .
- **`project`** *(string)*
- **`region`** *(string)*: The GCP region to provision resources in.Examples:
```json
"us-east1"
``````json
"us-east4"
``````json
"us-west1"
``````json
"us-west2"
``````json
"us-west3"
``````json
"us-west4"
``````json
"us-central1"
```### Artifacts
Resources created by this bundle that can be connected to other bundles.
View
## Properties
- **`subnetwork`** *(object)*: A region-bound network for deploying GCP resources. Cannot contain additional properties.
- **`data`** *(object)*
- **`infrastructure`** *(object)*
- **`cidr`** *(string)*Examples:
```json
"10.100.0.0/16"
``````json
"192.24.12.0/22"
```- **`gcp_global_network_grn`** *(string)*: GCP Resource Name (GRN).
Examples:
```json
"projects/my-project/global/networks/my-global-network"
``````json
"projects/my-project/regions/us-west2/subnetworks/my-subnetwork"
``````json
"projects/my-project/topics/my-pubsub-topic"
``````json
"projects/my-project/subscriptions/my-pubsub-subscription"
``````json
"projects/my-project/locations/us-west2/instances/my-redis-instance"
``````json
"projects/my-project/locations/us-west2/clusters/my-gke-cluster"
```- **`grn`** *(string)*: GCP Resource Name (GRN).
Examples:
```json
"projects/my-project/global/networks/my-global-network"
``````json
"projects/my-project/regions/us-west2/subnetworks/my-subnetwork"
``````json
"projects/my-project/topics/my-pubsub-topic"
``````json
"projects/my-project/subscriptions/my-pubsub-subscription"
``````json
"projects/my-project/locations/us-west2/instances/my-redis-instance"
``````json
"projects/my-project/locations/us-west2/clusters/my-gke-cluster"
```- **`vpc_access_connector`** *(string)*: GCP Resource Name (GRN).
Examples:
```json
"projects/my-project/global/networks/my-global-network"
``````json
"projects/my-project/regions/us-west2/subnetworks/my-subnetwork"
``````json
"projects/my-project/topics/my-pubsub-topic"
``````json
"projects/my-project/subscriptions/my-pubsub-subscription"
``````json
"projects/my-project/locations/us-west2/instances/my-redis-instance"
``````json
"projects/my-project/locations/us-west2/clusters/my-gke-cluster"
```- **`specs`** *(object)*
- **`gcp`** *(object)*: .
- **`project`** *(string)*
- **`region`** *(string)*: The GCP region to provision resources in.Examples:
```json
"us-east1"
``````json
"us-east4"
``````json
"us-west1"
``````json
"us-west2"
``````json
"us-west3"
``````json
"us-west4"
``````json
"us-central1"
```## Contributing
### Bug Reports & Feature Requests
Did we miss something? Please [submit an issue](https://github.com/massdriver-cloud/gcp-subnetwork/issues) to report any bugs or request additional features.
### Developing
**Note**: Massdriver bundles are intended to be tightly use-case scoped, intention-based, reusable pieces of IaC for use in the [Massdriver][website] platform. For this reason, major feature additions that broaden the scope of an existing bundle are likely to be rejected by the community.
Still want to get involved? First check out our [contribution guidelines](https://docs.massdriver.cloud/bundles/contributing).
### Fix or Fork
If your use-case isn't covered by this bundle, you can still get involved! Massdriver is designed to be an extensible platform. Fork this bundle, or [create your own bundle from scratch](https://docs.massdriver.cloud/bundles/development)!
## Connect
Questions? Concerns? Adulations? We'd love to hear from you!
Please connect with us!
[![Email][email_shield]][email_url]
[![GitHub][github_shield]][github_url]
[![LinkedIn][linkedin_shield]][linkedin_url]
[![Twitter][twitter_shield]][twitter_url]
[![YouTube][youtube_shield]][youtube_url]
[![Reddit][reddit_shield]][reddit_url][logo]: https://raw.githubusercontent.com/massdriver-cloud/docs/main/static/img/logo-with-logotype-horizontal-400x110.svg
[docs]: https://docs.massdriver.cloud/?utm_source=github&utm_medium=readme&utm_campaign=gcp-subnetwork&utm_content=docs
[website]: https://www.massdriver.cloud/?utm_source=github&utm_medium=readme&utm_campaign=gcp-subnetwork&utm_content=website
[github]: https://github.com/massdriver-cloud?utm_source=github&utm_medium=readme&utm_campaign=gcp-subnetwork&utm_content=github
[slack]: https://massdriverworkspace.slack.com/?utm_source=github&utm_medium=readme&utm_campaign=gcp-subnetwork&utm_content=slack
[linkedin]: https://www.linkedin.com/company/massdriver/?utm_source=github&utm_medium=readme&utm_campaign=gcp-subnetwork&utm_content=linkedin[contributors_shield]: https://img.shields.io/github/contributors/massdriver-cloud/gcp-subnetwork.svg?style=for-the-badge
[contributors_url]: https://github.com/massdriver-cloud/gcp-subnetwork/graphs/contributors
[forks_shield]: https://img.shields.io/github/forks/massdriver-cloud/gcp-subnetwork.svg?style=for-the-badge
[forks_url]: https://github.com/massdriver-cloud/gcp-subnetwork/network/members
[stars_shield]: https://img.shields.io/github/stars/massdriver-cloud/gcp-subnetwork.svg?style=for-the-badge
[stars_url]: https://github.com/massdriver-cloud/gcp-subnetwork/stargazers
[issues_shield]: https://img.shields.io/github/issues/massdriver-cloud/gcp-subnetwork.svg?style=for-the-badge
[issues_url]: https://github.com/massdriver-cloud/gcp-subnetwork/issues
[release_url]: https://github.com/massdriver-cloud/gcp-subnetwork/releases/latest
[release_shield]: https://img.shields.io/github/release/massdriver-cloud/gcp-subnetwork.svg?style=for-the-badge
[license_shield]: https://img.shields.io/github/license/massdriver-cloud/gcp-subnetwork.svg?style=for-the-badge
[license_url]: https://github.com/massdriver-cloud/gcp-subnetwork/blob/main/LICENSE[email_url]: mailto:[email protected]
[email_shield]: https://img.shields.io/badge/email-Massdriver-black.svg?style=for-the-badge&logo=mail.ru&color=000000
[github_url]: mailto:[email protected]
[github_shield]: https://img.shields.io/badge/follow-Github-black.svg?style=for-the-badge&logo=github&color=181717
[linkedin_url]: https://linkedin.com/in/massdriver-cloud
[linkedin_shield]: https://img.shields.io/badge/follow-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&color=0A66C2
[twitter_url]: https://twitter.com/massdriver?utm_source=github&utm_medium=readme&utm_campaign=gcp-subnetwork&utm_content=twitter
[twitter_shield]: https://img.shields.io/badge/follow-Twitter-black.svg?style=for-the-badge&logo=twitter&color=1DA1F2
[discourse_url]: https://community.massdriver.cloud?utm_source=github&utm_medium=readme&utm_campaign=gcp-subnetwork&utm_content=discourse
[discourse_shield]: https://img.shields.io/badge/join-Discourse-black.svg?style=for-the-badge&logo=discourse&color=000000
[youtube_url]: https://www.youtube.com/channel/UCfj8P7MJcdlem2DJpvymtaQ
[youtube_shield]: https://img.shields.io/badge/subscribe-Youtube-black.svg?style=for-the-badge&logo=youtube&color=FF0000
[reddit_url]: https://www.reddit.com/r/massdriver
[reddit_shield]: https://img.shields.io/badge/subscribe-Reddit-black.svg?style=for-the-badge&logo=reddit&color=FF4500