Skip to content

Commit

Permalink
chore: update examples to use registry (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Dec 20, 2023
1 parent de1246e commit 265df32
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

timeout: 3600s
steps:
- id: swap-module-refs
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['module-swapper']
- id: prepare
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && prepare_environment']
Expand Down
4 changes: 3 additions & 1 deletion examples/gsutil/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ provider "google" {
}

module "startup-scripts" {
source = "../../"
source = "terraform-google-modules/startup-scripts/google"
version = "~> 2.0"

enable_get_from_bucket = true
enable_setup_init_script = true
}
Expand Down
1 change: 0 additions & 1 deletion examples/simple_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ $ curl -H Metadata-Flavor:Google http://metadata.google.internal/computeMetadata
| network | The network name to deploy to | `string` | `"default"` | no |
| project\_id | The project\_id to deploy the example instance into. (e.g. "simple-sample-project-1234") | `any` | n/a | yes |
| region | The region to deploy to | `any` | n/a | yes |
| url | The url to fetch in the startup script. This URL is passed via instance metadata to the startup script. (e.g. ifconfig.co/city) | `string` | `"http://ifconfig.co/json"` | no |

## Outputs

Expand Down
4 changes: 3 additions & 1 deletion examples/simple_example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ provider "google" {
}

module "startup-scripts" {
source = "../../"
source = "terraform-google-modules/startup-scripts/google"
version = "~> 2.0"

enable_setup_sudoers = true
}

Expand Down
5 changes: 0 additions & 5 deletions examples/simple_example/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,3 @@ variable "network" {
description = "The network name to deploy to"
default = "default"
}

variable "url" {
description = "The url to fetch in the startup script. This URL is passed via instance metadata to the startup script. (e.g. ifconfig.co/city)"
default = "http://ifconfig.co/json"
}

0 comments on commit 265df32

Please sign in to comment.