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
34 changes: 17 additions & 17 deletions terraform/env/dev/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# S3
module "s3" {
source = "../../modules/03.bucket_s3"
bucket_name = "${var.project_name}-${var.environment}-bucket"
environment = var.environment
project_name = var.project_name
region = var.aws_region
lifecycle_rule = [
{
id = "lifecycle-rule"
prefix = "certificates/"
expiration = 90
status = "Enabled"
}
]
}

# # ECR
# module "ecr" {
# source = "../../modules/01.ecr"
Expand Down Expand Up @@ -36,23 +53,6 @@
# project_name = var.project_name
# }

# # # S3
# module "s3" {
# source = "../../modules/03.bucket_s3"
# bucket_name = "${var.project_name}-${var.environment}-bucket"
# environment = var.environment
# project_name = var.project_name
# region = var.aws_region
# lifecycle_rule = [
# {
# id = "lifecycle-rule"
# prefix = "certificates/"
# expiration = 90
# status = "Enabled"
# }
# ]
# }

# SQS
# module "sqs" {
# source = "../../modules/04.sqs"
Expand Down
22 changes: 11 additions & 11 deletions terraform/env/dev/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Informações do s3
output "s3_bucket_name" {
description = "Nome do bucket S3"
value = module.s3.bucket_name
}

output "s3_bucket_arn" {
description = "ARN do bucket S3"
value = module.s3.bucket_arn
}

# # Informações do ECR
# output "ecr_repository_url" {
# description = "URL do repositório ECR"
Expand Down Expand Up @@ -53,17 +64,6 @@
# value = module.products_table.table_arn
# }

# # Informações do s3
# output "s3_bucket_name" {
# description = "Nome do bucket S3"
# value = module.s3.bucket_name
# }

# output "s3_bucket_arn" {
# description = "ARN do bucket S3"
# value = module.s3.bucket_arn
# }

# # # Informações do SQS
# # output "sqs_queue_url" {
# # description = "URL da fila SQS principal"
Expand Down