Skip to content

Commit c795ee0

Browse files
authored
Merge pull request #34 from PythonFloripa/add-dynamo-db-tables
Uncomment DynamoDB table modules and outputs
2 parents eb3aae0 + a881cc9 commit c795ee0

File tree

2 files changed

+60
-61
lines changed

2 files changed

+60
-61
lines changed

terraform/env/dev/main.tf

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,34 @@ module "ecr" {
77
project_name = var.project_name
88
}
99

10-
# # DynamoDB Tables
11-
# module "certificates_table" {
12-
# source = "../../modules/02.dynamodb/certificates"
13-
# table_name = "${var.project_name}-certificates-${var.environment}"
14-
# environment = var.environment
15-
# project_name = var.project_name
16-
# }
10+
# DynamoDB Tables
11+
module "certificates_table" {
12+
source = "../../modules/02.dynamodb/certificates"
13+
table_name = "${var.project_name}-certificates-${var.environment}"
14+
environment = var.environment
15+
project_name = var.project_name
16+
}
1717

18-
# module "orders_table" {
19-
# source = "../../modules/02.dynamodb/orders"
20-
# table_name = "${var.project_name}-orders-${var.environment}"
21-
# environment = var.environment
22-
# project_name = var.project_name
23-
# }
18+
module "orders_table" {
19+
source = "../../modules/02.dynamodb/orders"
20+
table_name = "${var.project_name}-orders-${var.environment}"
21+
environment = var.environment
22+
project_name = var.project_name
23+
}
2424

25-
# module "participants_table" {
26-
# source = "../../modules/02.dynamodb/participants"
27-
# table_name = "${var.project_name}-participants-${var.environment}"
28-
# environment = var.environment
29-
# project_name = var.project_name
30-
# }
25+
module "participants_table" {
26+
source = "../../modules/02.dynamodb/participants"
27+
table_name = "${var.project_name}-participants-${var.environment}"
28+
environment = var.environment
29+
project_name = var.project_name
30+
}
3131

32-
# module "products_table" {
33-
# source = "../../modules/02.dynamodb/products"
34-
# table_name = "${var.project_name}-products-${var.environment}"
35-
# environment = var.environment
36-
# project_name = var.project_name
37-
# }
32+
module "products_table" {
33+
source = "../../modules/02.dynamodb/products"
34+
table_name = "${var.project_name}-products-${var.environment}"
35+
environment = var.environment
36+
project_name = var.project_name
37+
}
3838

3939
# # S3
4040
# module "s3" {

terraform/env/dev/outputs.tf

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,48 @@ output "ecr_api_repository_name" {
1010
}
1111

1212
# Informações das tabelas de certificados
13-
# output "certificates_table_name" {
14-
# description = "Nome da tabela de certificados"
15-
# value = module.certificates_table.table_name
16-
# }
17-
18-
# output "certificates_table_arn" {
19-
# description = "ARN da tabela de certificados"
20-
# value = module.certificates_table.table_arn
21-
# }
13+
output "certificates_table_name" {
14+
description = "Nome da tabela de certificados"
15+
value = module.certificates_table.table_name
16+
}
2217

23-
# # Informações das tabelas de pedidos
24-
# output "orders_table_name" {
25-
# description = "Nome da tabela de pedidos"
26-
# value = module.orders_table.table_name
27-
# }
18+
output "certificates_table_arn" {
19+
description = "ARN da tabela de certificados"
20+
value = module.certificates_table.table_arn
21+
}
2822

29-
# output "orders_table_arn" {
30-
# description = "ARN da tabela de pedidos"
31-
# value = module.orders_table.table_arn
32-
# }
23+
# Informações das tabelas de pedidos
24+
output "orders_table_name" {
25+
description = "Nome da tabela de pedidos"
26+
value = module.orders_table.table_name
27+
}
3328

34-
# # Informações das tabelas de participantes
35-
# output "participants_table_name" {
36-
# description = "Nome da tabela de participantes"
37-
# value = module.participants_table.table_name
38-
# }
29+
output "orders_table_arn" {
30+
description = "ARN da tabela de pedidos"
31+
value = module.orders_table.table_arn
32+
}
3933

40-
# output "participants_table_arn" {
41-
# description = "ARN da tabela de participantes"
42-
# value = module.participants_table.table_arn
43-
# }
34+
# Informações das tabelas de participantes
35+
output "participants_table_name" {
36+
description = "Nome da tabela de participantes"
37+
value = module.participants_table.table_name
38+
}
4439

45-
# # Informações das tabelas de produtos
46-
# output "products_table_name" {
47-
# description = "Nome da tabela de produtos"
48-
# value = module.products_table.table_name
49-
# }
40+
output "participants_table_arn" {
41+
description = "ARN da tabela de participantes"
42+
value = module.participants_table.table_arn
43+
}
5044

51-
# output "products_table_arn" {
52-
# description = "ARN da tabela de produtos"
53-
# value = module.products_table.table_arn
54-
# }
45+
# Informações das tabelas de produtos
46+
output "products_table_name" {
47+
description = "Nome da tabela de produtos"
48+
value = module.products_table.table_name
49+
}
5550

51+
output "products_table_arn" {
52+
description = "ARN da tabela de produtos"
53+
value = module.products_table.table_arn
54+
}
5655

5756
# # # Informações do SQS
5857
# # output "sqs_queue_url" {

0 commit comments

Comments
 (0)