Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
feat: optionally pass ceramic network to ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
v-stickykeys committed May 21, 2021
1 parent 37f013e commit 7576971
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ variable "ceramic_task_count" {

/***** IPFS *****/

variable "ipfs_ceramic_network" {
type = string
description = "Ceramic network to pass to IPFS"
default = ""
}

variable "ipfs_cpu" {
type = number
description = "vCPU units to allocate to the IPFS ECS task"
Expand Down
2 changes: 1 addition & 1 deletion modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module "ipfs" {
aws_region = var.aws_region
base_tags = var.default_tags
base_namespace = local.namespace
ceramic_network = var.ceramic_network # not strictly necessary when used with js-ceramic
ceramic_network = var.ipfs_ceramic_network
debug = var.ipfs_debug_env_var
dht_server_mode = false
directory_namespace = local.namespace
Expand Down
8 changes: 7 additions & 1 deletion modules/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ variable "ceramic_task_count" {
default = 1
}

/***** IPFS *****/
/* IPFS */

variable "ipfs_ceramic_network" {
type = string
description = "Ceramic network passed to IPFS. Must match `ceramic_network` or be an empty string."
default = ""
}

variable "ipfs_cpu" {
type = number
Expand Down

0 comments on commit 7576971

Please sign in to comment.