https://github.com/methridge/gcp-simple
https://github.com/methridge/gcp-simple
example gcp terraform
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/methridge/gcp-simple
- Owner: methridge
- License: gpl-3.0
- Created: 2023-03-28T18:26:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T21:55:05.000Z (over 1 year ago)
- Last Synced: 2025-01-05T17:29:41.372Z (about 1 year ago)
- Topics: example, gcp, terraform
- Language: HCL
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Simple Terraform Module to deploy a GCP VM
This repository contains simple Terraform code to deploy a GCP VM.
## Requirements
| Name | Version |
|------|---------|
| terraform | ~> 1.0 |
| google | ~>4.55 |
## Providers
| Name | Version |
|------|---------|
| google | ~>4.55 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [google_compute_instance.simple_vm](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance) | resource |
| [google_compute_image.ubuntu_image](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_image) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| prefix | Prefix for VM names | `string` | n/a | yes |
| machine\_type | Machine type for VMs | `string` | `"f1-micro"` | no |
| node\_count | Number of VMs to create | `number` | `1` | no |
## Outputs
| Name | Description |
|------|-------------|
| public\_ip | Public IP address of the VMs |