Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Example for GCP instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson committed Jul 26, 2018
1 parent 75a1ae9 commit 3219eb4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/docs/d/cloudinit_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ resource "aws_instance" "web" {
instance_type = "t2.micro"
user_data = "${data.template_cloudinit_config.config.rendered}"
}
# Start a GCP instance with the cloudinit config as user data.
resource "google_compute_instance" "web" {
name = "instance"
machine_type = "n1-standard-1"
metadata {
user-data = "${data.template_cloudinit_config.instance_user_data.rendered}"
}
}
```

## Argument Reference
Expand Down

0 comments on commit 3219eb4

Please sign in to comment.