Skip to content

Commit

Permalink
feat: add pubsub as module to align to revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
jdongo-aneo committed Aug 19, 2024
1 parent d701d82 commit d37c723
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions storage/gcp/pubsub/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#main
9 changes: 9 additions & 0 deletions storage/gcp/pubsub/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
output "env" {
description = "Elements to be set as environment variables"
value = ({
"Components__QueueAdaptorSettings__ClassName" = "ArmoniK.Core.Adapters.PubSub.QueueBuilder"
"Components__QueueAdaptorSettings__AdapterAbsolutePath" = "/adapters/queue/pubsub/ArmoniK.Core.Adapters.PubSub.dll"
"PubSub__ProjectId" = var.project_id
"PubSub__KmsKeyName" = var.kms_key_id
})
}
9 changes: 9 additions & 0 deletions storage/gcp/pubsub/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
variable "project_id" {
description = "Id of the google project"
type = string
}

variable "kms_key_id" {
description = "Id of the crypto KMS used to encrypt/decrypt resources"
type = string
}
3 changes: 3 additions & 0 deletions storage/gcp/pubsub/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
terraform {
required_version = ">= 1.0"
}

0 comments on commit d37c723

Please sign in to comment.