diff --git a/README.md b/README.md index 1599050..6552c08 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ Then perform the following commands on the root folder: | container | A description of the container to deploy | `any` |
{| no | | cos\_image\_family | The COS image family to use (eg: stable, beta, or dev) | `string` | `"stable"` | no | | cos\_image\_name | Name of a specific COS image to use instead of the latest cos family image | `string` | `null` | no | +| cos\_project | COS project where the image is located | `string` | `"cos-cloud"` | no | | restart\_policy | The restart policy for a Docker container. Defaults to `OnFailure` | `string` | `"OnFailure"` | no | | volumes | A set of Docker Volumes to configure | `any` | `[]` | no | diff --git a/main.tf b/main.tf index cc59979..8f6478b 100644 --- a/main.tf +++ b/main.tf @@ -24,7 +24,7 @@ locals { cos_image_name = var.cos_image_name cos_image_family = var.cos_image_name == null ? "cos-${var.cos_image_family}" : null - cos_project = "cos-cloud" + cos_project = var.cos_project spec = { spec = { diff --git a/variables.tf b/variables.tf index adf0747..ba58524 100644 --- a/variables.tf +++ b/variables.tf @@ -48,3 +48,10 @@ variable "cos_image_name" { type = string default = null } + +variable "cos_project" { + description = "COS project where the image is located" + type = string + default = "cos-cloud" +} +
"command": "ls",
"image": "gcr.io/google-containers/busybox"
}