Skip to content

Commit 99058a4

Browse files
authored
Merge pull request #31 from PythonFloripa/comment-out-dev-environment
Comment out ECR, DynamoDB, and S3 configurations for development
2 parents d9206f7 + f1cc3e1 commit 99058a4

File tree

3 files changed

+130
-155
lines changed

3 files changed

+130
-155
lines changed

terraform/env/dev/.terraform.lock.hcl

Lines changed: 0 additions & 25 deletions
This file was deleted.

terraform/env/dev/main.tf

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
1-
# ECR
2-
module "ecr" {
3-
source = "../../modules/01.ecr"
4-
api_repository_name = "${var.project_name}-api-${var.environment}"
5-
builder_repository_name = "${var.project_name}-builder-${var.environment}"
6-
notification_repository_name = "${var.project_name}-notification-${var.environment}"
7-
project_name = var.project_name
8-
}
1+
# # ECR
2+
# module "ecr" {
3+
# source = "../../modules/01.ecr"
4+
# api_repository_name = "${var.project_name}-api-${var.environment}"
5+
# builder_repository_name = "${var.project_name}-builder-${var.environment}"
6+
# notification_repository_name = "${var.project_name}-notification-${var.environment}"
7+
# project_name = var.project_name
8+
# }
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

39-
# S3
40-
module "s3" {
41-
source = "../../modules/03.bucket_s3"
42-
bucket_name = "${var.project_name}-${var.environment}-bucket"
43-
environment = var.environment
44-
project_name = var.project_name
45-
region = var.aws_region
46-
lifecycle_rule = [
47-
{
48-
id = "lifecycle-rule"
49-
prefix = "certificates/"
50-
expiration = 90
51-
status = "Enabled"
52-
}
53-
]
54-
}
39+
# # S3
40+
# module "s3" {
41+
# source = "../../modules/03.bucket_s3"
42+
# bucket_name = "${var.project_name}-${var.environment}-bucket"
43+
# environment = var.environment
44+
# project_name = var.project_name
45+
# region = var.aws_region
46+
# lifecycle_rule = [
47+
# {
48+
# id = "lifecycle-rule"
49+
# prefix = "certificates/"
50+
# expiration = 90
51+
# status = "Enabled"
52+
# }
53+
# ]
54+
# }
5555

5656
# SQS
5757
# module "sqs" {

terraform/env/dev/outputs.tf

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
11
# Outputs principais do Terraform
22

33
# Informações das tabelas de certificados
4-
output "certificates_table_name" {
5-
description = "Nome da tabela de certificados"
6-
value = module.certificates_table.table_name
7-
}
8-
9-
output "certificates_table_arn" {
10-
description = "ARN da tabela de certificados"
11-
value = module.certificates_table.table_arn
12-
}
13-
14-
# Informações das tabelas de pedidos
15-
output "orders_table_name" {
16-
description = "Nome da tabela de pedidos"
17-
value = module.orders_table.table_name
18-
}
19-
20-
output "orders_table_arn" {
21-
description = "ARN da tabela de pedidos"
22-
value = module.orders_table.table_arn
23-
}
24-
25-
# Informações das tabelas de participantes
26-
output "participants_table_name" {
27-
description = "Nome da tabela de participantes"
28-
value = module.participants_table.table_name
29-
}
30-
31-
output "participants_table_arn" {
32-
description = "ARN da tabela de participantes"
33-
value = module.participants_table.table_arn
34-
}
35-
36-
# Informações das tabelas de produtos
37-
output "products_table_name" {
38-
description = "Nome da tabela de produtos"
39-
value = module.products_table.table_name
40-
}
41-
42-
output "products_table_arn" {
43-
description = "ARN da tabela de produtos"
44-
value = module.products_table.table_arn
45-
}
46-
47-
48-
# # Informações do SQS
49-
# output "sqs_queue_url" {
50-
# description = "URL da fila SQS principal"
51-
# value = module.sqs.queue_url
52-
# }
53-
54-
# output "sqs_queue_arn" {
55-
# description = "ARN da fila SQS principal"
56-
# value = module.sqs.queue_arn
57-
# }
58-
59-
# output "sqs_dlq_url" {
60-
# description = "URL da Dead Letter Queue (builder)"
61-
# value = module.sqs.builder_dlq_url
62-
# }
63-
64-
# Informações do ECR
65-
output "ecr_repository_url" {
66-
description = "URL do repositório ECR"
67-
value = module.ecr.api_repository_url
68-
}
69-
70-
output "ecr_api_repository_name" {
71-
description = "Nome do repositório ECR"
72-
value = module.ecr.api_repository_name
73-
}
74-
75-
#informações do s3
76-
output "s3_bucket_name" {
77-
description = "Nome do bucket S3"
78-
value = module.s3.bucket_name
79-
}
80-
81-
output "s3_bucket_arn" {
82-
description = "ARN do bucket S3"
83-
value = module.s3.bucket_arn
84-
}
4+
# output "certificates_table_name" {
5+
# description = "Nome da tabela de certificados"
6+
# value = module.certificates_table.table_name
7+
# }
8+
9+
# output "certificates_table_arn" {
10+
# description = "ARN da tabela de certificados"
11+
# value = module.certificates_table.table_arn
12+
# }
13+
14+
# # Informações das tabelas de pedidos
15+
# output "orders_table_name" {
16+
# description = "Nome da tabela de pedidos"
17+
# value = module.orders_table.table_name
18+
# }
19+
20+
# output "orders_table_arn" {
21+
# description = "ARN da tabela de pedidos"
22+
# value = module.orders_table.table_arn
23+
# }
24+
25+
# # Informações das tabelas de participantes
26+
# output "participants_table_name" {
27+
# description = "Nome da tabela de participantes"
28+
# value = module.participants_table.table_name
29+
# }
30+
31+
# output "participants_table_arn" {
32+
# description = "ARN da tabela de participantes"
33+
# value = module.participants_table.table_arn
34+
# }
35+
36+
# # Informações das tabelas de produtos
37+
# output "products_table_name" {
38+
# description = "Nome da tabela de produtos"
39+
# value = module.products_table.table_name
40+
# }
41+
42+
# output "products_table_arn" {
43+
# description = "ARN da tabela de produtos"
44+
# value = module.products_table.table_arn
45+
# }
46+
47+
48+
# # # Informações do SQS
49+
# # output "sqs_queue_url" {
50+
# # description = "URL da fila SQS principal"
51+
# # value = module.sqs.queue_url
52+
# # }
53+
54+
# # output "sqs_queue_arn" {
55+
# # description = "ARN da fila SQS principal"
56+
# # value = module.sqs.queue_arn
57+
# # }
58+
59+
# # output "sqs_dlq_url" {
60+
# # description = "URL da Dead Letter Queue (builder)"
61+
# # value = module.sqs.builder_dlq_url
62+
# # }
63+
64+
# # Informações do ECR
65+
# output "ecr_repository_url" {
66+
# description = "URL do repositório ECR"
67+
# value = module.ecr.api_repository_url
68+
# }
69+
70+
# output "ecr_api_repository_name" {
71+
# description = "Nome do repositório ECR"
72+
# value = module.ecr.api_repository_name
73+
# }
74+
75+
# #informações do s3
76+
# output "s3_bucket_name" {
77+
# description = "Nome do bucket S3"
78+
# value = module.s3.bucket_name
79+
# }
80+
81+
# output "s3_bucket_arn" {
82+
# description = "ARN do bucket S3"
83+
# value = module.s3.bucket_arn
84+
# }
8585

8686
## Informações do Lambda
8787
# output "lambda_function_name" {

0 commit comments

Comments
 (0)