Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions terraform/env/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@ module "ecr" {
project_name = var.project_name
}

# # DynamoDB Tables
# module "certificates_table" {
# source = "../../modules/02.dynamodb/certificates"
# table_name = "${var.project_name}-certificates-${var.environment}"
# environment = var.environment
# project_name = var.project_name
# }
# DynamoDB Tables
module "certificates_table" {
source = "../../modules/02.dynamodb/certificates"
table_name = "${var.project_name}-certificates-${var.environment}"
environment = var.environment
project_name = var.project_name
}

# module "orders_table" {
# source = "../../modules/02.dynamodb/orders"
# table_name = "${var.project_name}-orders-${var.environment}"
# environment = var.environment
# project_name = var.project_name
# }
module "orders_table" {
source = "../../modules/02.dynamodb/orders"
table_name = "${var.project_name}-orders-${var.environment}"
environment = var.environment
project_name = var.project_name
}

# module "participants_table" {
# source = "../../modules/02.dynamodb/participants"
# table_name = "${var.project_name}-participants-${var.environment}"
# environment = var.environment
# project_name = var.project_name
# }
module "participants_table" {
source = "../../modules/02.dynamodb/participants"
table_name = "${var.project_name}-participants-${var.environment}"
environment = var.environment
project_name = var.project_name
}

# module "products_table" {
# source = "../../modules/02.dynamodb/products"
# table_name = "${var.project_name}-products-${var.environment}"
# environment = var.environment
# project_name = var.project_name
# }
module "products_table" {
source = "../../modules/02.dynamodb/products"
table_name = "${var.project_name}-products-${var.environment}"
environment = var.environment
project_name = var.project_name
}

# # S3
# module "s3" {
Expand Down
71 changes: 35 additions & 36 deletions terraform/env/dev/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,48 @@ output "ecr_api_repository_name" {
}

# Informações das tabelas de certificados
# output "certificates_table_name" {
# description = "Nome da tabela de certificados"
# value = module.certificates_table.table_name
# }

# output "certificates_table_arn" {
# description = "ARN da tabela de certificados"
# value = module.certificates_table.table_arn
# }
output "certificates_table_name" {
description = "Nome da tabela de certificados"
value = module.certificates_table.table_name
}

# # Informações das tabelas de pedidos
# output "orders_table_name" {
# description = "Nome da tabela de pedidos"
# value = module.orders_table.table_name
# }
output "certificates_table_arn" {
description = "ARN da tabela de certificados"
value = module.certificates_table.table_arn
}

# output "orders_table_arn" {
# description = "ARN da tabela de pedidos"
# value = module.orders_table.table_arn
# }
# Informações das tabelas de pedidos
output "orders_table_name" {
description = "Nome da tabela de pedidos"
value = module.orders_table.table_name
}

# # Informações das tabelas de participantes
# output "participants_table_name" {
# description = "Nome da tabela de participantes"
# value = module.participants_table.table_name
# }
output "orders_table_arn" {
description = "ARN da tabela de pedidos"
value = module.orders_table.table_arn
}

# output "participants_table_arn" {
# description = "ARN da tabela de participantes"
# value = module.participants_table.table_arn
# }
# Informações das tabelas de participantes
output "participants_table_name" {
description = "Nome da tabela de participantes"
value = module.participants_table.table_name
}

# # Informações das tabelas de produtos
# output "products_table_name" {
# description = "Nome da tabela de produtos"
# value = module.products_table.table_name
# }
output "participants_table_arn" {
description = "ARN da tabela de participantes"
value = module.participants_table.table_arn
}

# output "products_table_arn" {
# description = "ARN da tabela de produtos"
# value = module.products_table.table_arn
# }
# Informações das tabelas de produtos
output "products_table_name" {
description = "Nome da tabela de produtos"
value = module.products_table.table_name
}

output "products_table_arn" {
description = "ARN da tabela de produtos"
value = module.products_table.table_arn
}

# # # Informações do SQS
# # output "sqs_queue_url" {
Expand Down