Commit 1f3563b 1 parent eb6d747 commit 1f3563b Copy full SHA for 1f3563b
File tree 4 files changed +18
-2
lines changed
4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ locals {
5
5
module "lambda" {
6
6
source = " ./modules/lambda"
7
7
env = local. env
8
- function_name = " ${ local . env } -youtube-comment-analysis "
8
+ function_name = " ${ local . env } -youtube-comment-management "
9
9
bucket_name = module. s3 . bucket_name
10
10
function_dir = " ${ abspath (path. root )} /../function"
11
11
service_name = var. service_name
12
12
}
13
13
14
14
module "s3" {
15
15
source = " ./modules/s3"
16
- bucket_name = " ${ local . env } -youtube-comment-analysis "
16
+ bucket_name = " ${ local . env } -youtube-comment-storage "
17
17
env = local. env
18
18
service_name = var. service_name
19
19
}
Original file line number Diff line number Diff line change 1
1
output "function_arn" {
2
2
value = aws_lambda_function. function . arn
3
3
}
4
+
5
+ output "function_name" {
6
+ value = aws_lambda_function. function . function_name
7
+ }
Original file line number Diff line number Diff line change 1
1
resource "aws_s3_bucket" "bucket" {
2
2
bucket = var. bucket_name
3
+
4
+ force_destroy = var. env == " prod" ? false : true
3
5
tags = {
4
6
Env = var.env
5
7
Service = var.service_name
Original file line number Diff line number Diff line change @@ -3,11 +3,21 @@ output "lambda_function_arn" {
3
3
value = module. lambda . function_arn
4
4
}
5
5
6
+ output "lambda_function_name" {
7
+ description = " Name of the Lambda function"
8
+ value = module. lambda . function_name
9
+ }
10
+
6
11
output "s3_bucket_arn" {
7
12
description = " ARN of the S3 bucket"
8
13
value = module. s3 . bucket_arn
9
14
}
10
15
16
+ output "s3_bucket_name" {
17
+ description = " Name of the S3 bucket"
18
+ value = module. s3 . bucket_name
19
+ }
20
+
11
21
output "glue_database_name" {
12
22
description = " Name of the Glue database"
13
23
value = module. glue . database_name
You can’t perform that action at this time.
0 commit comments