Skip to content

Commit 414f603

Browse files
committed
fix: uncomment and restore ECR, DynamoDB, SQS, Lambda, and API Gateway outputs in Terraform configuration
1 parent a8bcdce commit 414f603

File tree

2 files changed

+229
-229
lines changed

2 files changed

+229
-229
lines changed

terraform/env/dev/main.tf

Lines changed: 88 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -15,99 +15,99 @@ module "s3" {
1515
]
1616
}
1717

18-
# # ECR
19-
# module "ecr" {
20-
# source = "../../modules/01.ecr"
21-
# api_repository_name = "${var.project_name}-api-${var.environment}"
22-
# builder_repository_name = "${var.project_name}-builder-${var.environment}"
23-
# notification_repository_name = "${var.project_name}-notification-${var.environment}"
24-
# project_name = var.project_name
25-
# }
18+
# ECR
19+
module "ecr" {
20+
source = "../../modules/01.ecr"
21+
api_repository_name = "${var.project_name}-api-${var.environment}"
22+
builder_repository_name = "${var.project_name}-builder-${var.environment}"
23+
notification_repository_name = "${var.project_name}-notification-${var.environment}"
24+
project_name = var.project_name
25+
}
2626

27-
# # DynamoDB Tables
28-
# module "certificates_table" {
29-
# source = "../../modules/02.dynamodb/certificates"
30-
# table_name = "${var.project_name}-certificates-${var.environment}"
31-
# environment = var.environment
32-
# project_name = var.project_name
33-
# }
27+
# DynamoDB Tables
28+
module "certificates_table" {
29+
source = "../../modules/02.dynamodb/certificates"
30+
table_name = "${var.project_name}-certificates-${var.environment}"
31+
environment = var.environment
32+
project_name = var.project_name
33+
}
3434

35-
# module "orders_table" {
36-
# source = "../../modules/02.dynamodb/orders"
37-
# table_name = "${var.project_name}-orders-${var.environment}"
38-
# environment = var.environment
39-
# project_name = var.project_name
40-
# }
35+
module "orders_table" {
36+
source = "../../modules/02.dynamodb/orders"
37+
table_name = "${var.project_name}-orders-${var.environment}"
38+
environment = var.environment
39+
project_name = var.project_name
40+
}
4141

42-
# module "participants_table" {
43-
# source = "../../modules/02.dynamodb/participants"
44-
# table_name = "${var.project_name}-participants-${var.environment}"
45-
# environment = var.environment
46-
# project_name = var.project_name
47-
# }
42+
module "participants_table" {
43+
source = "../../modules/02.dynamodb/participants"
44+
table_name = "${var.project_name}-participants-${var.environment}"
45+
environment = var.environment
46+
project_name = var.project_name
47+
}
4848

49-
# module "products_table" {
50-
# source = "../../modules/02.dynamodb/products"
51-
# table_name = "${var.project_name}-products-${var.environment}"
52-
# environment = var.environment
53-
# project_name = var.project_name
54-
# }
49+
module "products_table" {
50+
source = "../../modules/02.dynamodb/products"
51+
table_name = "${var.project_name}-products-${var.environment}"
52+
environment = var.environment
53+
project_name = var.project_name
54+
}
5555

5656
# SQS
57-
# module "sqs" {
58-
# source = "../../modules/04.sqs"
59-
# project_name = var.project_name
60-
# environment = var.environment
61-
# }
57+
module "sqs" {
58+
source = "../../modules/04.sqs"
59+
project_name = var.project_name
60+
environment = var.environment
61+
}
6262

63-
# # Lambda
64-
# module "lambda" {
65-
# source = "../../modules/05.lambda"
66-
# project_name = var.project_name
67-
# environment = var.environment
68-
# aws_region = var.aws_region
69-
# ecr_api_repository_name = module.ecr.api_repository_name
70-
# ecr_api_repository_url = module.ecr.api_repository_url
71-
# ecr_builder_repository_name = module.ecr.builder_repository_name
72-
# ecr_builder_repository_url = module.ecr.builder_repository_url
73-
# ecr_builder_repository_arn = module.ecr.builder_repository_arn
74-
# ecr_notification_repository_name = module.ecr.notification_repository_name
75-
# ecr_notification_repository_url = module.ecr.notification_repository_url
76-
# ecr_notification_repository_arn = module.ecr.notification_repository_arn
77-
# image_tag = var.lambda_image_tag
78-
# lambda_timeout = var.lambda_timeout
79-
# lambda_memory_size = var.lambda_memory_size
80-
# log_retention_days = var.log_retention_days
81-
# url_service_tech = var.url_service_tech
82-
# prefix_api_version = var.prefix_api_version
83-
# service_url_registration_api_solana = var.service_url_registration_api_solana
84-
# service_api_key_registration_api_solana = var.service_api_key_registration_api_solana
85-
# tech_floripa_certificate_validate_url = var.tech_floripa_certificate_validate_url
86-
# tech_floripa_logo_url = var.tech_floripa_logo_url
87-
# builder_queue_url = module.sqs.builder_queue_url
88-
# builder_queue_arn = module.sqs.builder_queue_arn
89-
# notification_queue_arn = module.sqs.notification_queue_arn
90-
# notification_queue_url = module.sqs.notification_queue_url
91-
# dynamodb_table_arns = [
92-
# module.certificates_table.table_arn,
93-
# module.orders_table.table_arn,
94-
# module.participants_table.table_arn,
95-
# module.products_table.table_arn
96-
# ]
97-
# ecr_repository_arn = module.ecr.api_repository_arn
98-
# s3_bucket_arn = module.s3.bucket_arn
99-
# s3_bucket_name = module.s3.bucket_name
100-
# api_gateway_download_url = module.api_gateway.api_endpoint_download_certificate
101-
# }
63+
# Lambda
64+
module "lambda" {
65+
source = "../../modules/05.lambda"
66+
project_name = var.project_name
67+
environment = var.environment
68+
aws_region = var.aws_region
69+
ecr_api_repository_name = module.ecr.api_repository_name
70+
ecr_api_repository_url = module.ecr.api_repository_url
71+
ecr_builder_repository_name = module.ecr.builder_repository_name
72+
ecr_builder_repository_url = module.ecr.builder_repository_url
73+
ecr_builder_repository_arn = module.ecr.builder_repository_arn
74+
ecr_notification_repository_name = module.ecr.notification_repository_name
75+
ecr_notification_repository_url = module.ecr.notification_repository_url
76+
ecr_notification_repository_arn = module.ecr.notification_repository_arn
77+
image_tag = var.lambda_image_tag
78+
lambda_timeout = var.lambda_timeout
79+
lambda_memory_size = var.lambda_memory_size
80+
log_retention_days = var.log_retention_days
81+
url_service_tech = var.url_service_tech
82+
prefix_api_version = var.prefix_api_version
83+
service_url_registration_api_solana = var.service_url_registration_api_solana
84+
service_api_key_registration_api_solana = var.service_api_key_registration_api_solana
85+
tech_floripa_certificate_validate_url = var.tech_floripa_certificate_validate_url
86+
tech_floripa_logo_url = var.tech_floripa_logo_url
87+
builder_queue_url = module.sqs.builder_queue_url
88+
builder_queue_arn = module.sqs.builder_queue_arn
89+
notification_queue_arn = module.sqs.notification_queue_arn
90+
notification_queue_url = module.sqs.notification_queue_url
91+
dynamodb_table_arns = [
92+
module.certificates_table.table_arn,
93+
module.orders_table.table_arn,
94+
module.participants_table.table_arn,
95+
module.products_table.table_arn
96+
]
97+
ecr_repository_arn = module.ecr.api_repository_arn
98+
s3_bucket_arn = module.s3.bucket_arn
99+
s3_bucket_name = module.s3.bucket_name
100+
api_gateway_download_url = module.api_gateway.api_endpoint_download_certificate
101+
}
102102

103-
# # API Gateway
104-
# module "api_gateway" {
105-
# source = "../../modules/06.api-gateway"
106-
# project_name = var.project_name
107-
# environment = var.environment
108-
# lambda_function_name = module.lambda.function_name
109-
# lambda_invoke_arn = module.lambda.invoke_arn
110-
# throttle_rate_limit = var.api_throttle_rate_limit
111-
# throttle_burst_limit = var.api_throttle_burst_limit
112-
# api_key_value = var.api_key_value
113-
# }
103+
# API Gateway
104+
module "api_gateway" {
105+
source = "../../modules/06.api-gateway"
106+
project_name = var.project_name
107+
environment = var.environment
108+
lambda_function_name = module.lambda.function_name
109+
lambda_invoke_arn = module.lambda.invoke_arn
110+
throttle_rate_limit = var.api_throttle_rate_limit
111+
throttle_burst_limit = var.api_throttle_burst_limit
112+
api_key_value = var.api_key_value
113+
}

0 commit comments

Comments
 (0)