Skip to content

Commit e42c59d

Browse files
authored
Merge pull request #22 from zama-ai/ghislain/chore/rework-tf-modules
Ghislain/chore/rework tf modules
2 parents 4a9440e + deee5e3 commit e42c59d

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

examples/mpc-network-consumer/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This example demonstrates how to connect to existing MPC services from partners
33

44
module "vpc_endpoint_consumer" {
5-
source = "git::[email protected]:zama-ai/terraform-mpc-modules.git//modules/vpc-endpoint-consumer?ref=v0.1.1"
5+
source = "git::[email protected]:zama-ai/terraform-mpc-modules.git//modules/vpc-endpoint-consumer?ref=v0.1.2"
66

77
# Network environment configuration
88
network_environment = var.network_environment

examples/mpc-network-provider/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ data "aws_region" "current" {}
44

55
# Deploy VPC endpoints for the created NLBs (optional, only in provider mode)
66
module "vpc_endpoint_provider" {
7-
source = "git::[email protected]:zama-ai/terraform-mpc-modules.git//modules/vpc-endpoint-provider?ref=v0.1.1"
7+
source = "git::[email protected]:zama-ai/terraform-mpc-modules.git//modules/vpc-endpoint-provider?ref=v0.1.2"
88

99
# Network environment configuration
1010
network_environment = var.network_environment

examples/mpc-party/main.tf

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,17 @@
22
# This example demonstrates how to deploy only the MPC party infrastructure
33
# using the enhanced mpc-party module that handles all Kubernetes resources
44

5-
6-
# Random suffix for bucket names to ensure uniqueness
7-
resource "random_id" "bucket_suffix" {
8-
byte_length = 4
9-
}
10-
115
# Deploy MPC Party infrastructure using the enhanced mpc-party module
126
module "mpc_party" {
13-
source = "git::[email protected]:zama-ai/terraform-mpc-modules.git//modules/mpc-party?ref=v0.1.1"
7+
source = "git::[email protected]:zama-ai/terraform-mpc-modules.git//modules/mpc-party?ref=v0.1.2"
148

159
# Network environment configuration
1610
network_environment = var.network_environment
1711
enable_region_validation = var.enable_region_validation
1812

1913
# Party configuration
2014
party_name = var.party_name
21-
vault_private_bucket_name = "${var.bucket_prefix}-private-${random_id.bucket_suffix.hex}"
22-
vault_public_bucket_name = "${var.bucket_prefix}-public-${random_id.bucket_suffix.hex}"
15+
bucket_prefix = var.bucket_prefix
2316

2417
# EKS Cluster configuration
2518
cluster_name = var.cluster_name

0 commit comments

Comments
 (0)