Skip to content

Commit

Permalink
Merge pull request #7 from deepfence/image_name-var
Browse files Browse the repository at this point in the history
add image_name as variable in example
  • Loading branch information
ibreakthecloud authored Dec 14, 2022
2 parents bb693e7 + 6c60916 commit 5b03da6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/single-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module "cloud-scanner_example_single-project" {
mgmt-console-url = "<Console URL> eg. XXX.XXX.XX.XXX"
mgmt-console-port = "443"
deepfence-key = "<Deepfence-key> eg. XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
image_name = "us-east1-docker.pkg.dev/deepfenceio/deepfence/cloud-scanner:latest"
}
```

Expand Down
5 changes: 1 addition & 4 deletions examples/single-project/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ resource "google_service_account" "container_sa" {
}

# deploys application image in cloud run container with required access

module "container" {
source = "../../modules/services/container"
name = "${var.name}-container"
mode = var.mode
mgmt-console-url = var.mgmt-console-url
mgmt-console-port = var.mgmt-console-port
deepfence-key = var.deepfence-key
image_name = var.image_name
project_id = data.google_client_config.current.project
container_sa_email = google_service_account.container_sa.email
cpu = 2
}



8 changes: 7 additions & 1 deletion examples/single-project/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ variable "deepfence-key" {
default = ""
}

variable "image_name" {
type = string
description = "Cloud Scanner docker image"
default = "us-east1-docker.pkg.dev/deepfenceio/deepfence/cloud-scanner:latest"
}

# variable "project" {
# type = string
# }

# variable "region" {
# type = string
# }
# }

0 comments on commit 5b03da6

Please sign in to comment.