Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from jetstack/update-example
Browse files Browse the repository at this point in the history
Update example
  • Loading branch information
wwwil committed Apr 30, 2019
2 parents 162e7ea + 5ceca09 commit f3c7465
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,20 @@ These are:
## Usage

The module itself is located in the root of this repo, and is designed to be used as part of a larger Terraform project.
There is also a minimal example project in the `example/` directory which can be used to show the module in use.
It can be used directly from the Terraform Registry like so:

```
module "gke-cluster" {
source = "jetstack/gke-cluster/google"
version = "0.1.0-beta1"
# insert the 9 required variables here
}
```

## Example

There is an [example project](https://github.com/jetstack/terraform-google-gke-cluster/tree/master/example) in the `example/` directory which can be used to test and demonstrate the module. It could also be used as the basis for your own Terraform project.

## License

Expand Down
3 changes: 2 additions & 1 deletion example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ resource "google_compute_subnetwork" "vpc_subnetwork" {
}

module "cluster" {
source = "../"
source = "jetstack/gke-cluster/google"
version = "0.1.0-beta1"

# These values are set from the terrafrom.tfvas file
gcp_project_id = "${var.gcp_project_id}"
Expand Down

0 comments on commit f3c7465

Please sign in to comment.