-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf04aaf
commit ddfc095
Showing
20 changed files
with
153 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
output "layers_list" { | ||
value = var.layers | ||
} | ||
|
||
output "layer_arns" { | ||
value = { | ||
for key, instance in module.layers : key => instance.layer_arn | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...rkspace/builds/2bb3f59d20d8950f4a08c332ac09c0e5d3b49167b15a76a7ce500e4642596b06.plan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"filename": "builds/2bb3f59d20d8950f4a08c332ac09c0e5d3b49167b15a76a7ce500e4642596b06.zip", | ||
"runtime": "", | ||
"artifacts_dir": "builds", | ||
"build_plan": [ | ||
[ | ||
"zip", | ||
"modules/api_worker/api_layer/../../../../../../src/layers/event/dist/event.zip", | ||
null | ||
] | ||
] | ||
} |
Binary file added
BIN
+221 Bytes
...per_workspace/builds/2bb3f59d20d8950f4a08c332ac09c0e5d3b49167b15a76a7ce500e4642596b06.zip
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
...rkspace/builds/7052fb68d98cab7aab868d0610ae3444723177fce349e3a8727003fb8b74897d.plan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"filename": "builds/7052fb68d98cab7aab868d0610ae3444723177fce349e3a8727003fb8b74897d.zip", | ||
"runtime": "", | ||
"artifacts_dir": "builds", | ||
"build_plan": [ | ||
[ | ||
"zip", | ||
"modules/api_worker/api_layer/../../../../../../src/layers/third_party/dist/third_party.zip", | ||
null | ||
] | ||
] | ||
} |
Binary file added
BIN
+2.27 MB
...per_workspace/builds/7052fb68d98cab7aab868d0610ae3444723177fce349e3a8727003fb8b74897d.zip
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
...rkspace/builds/a1e39abba50d099b76d78d430066b9778af9131a5dfd167cd3b340d7c38c2100.plan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"filename": "builds/a1e39abba50d099b76d78d430066b9778af9131a5dfd167cd3b340d7c38c2100.zip", | ||
"runtime": "", | ||
"artifacts_dir": "builds", | ||
"build_plan": [ | ||
[ | ||
"zip", | ||
"modules/api_worker/api_layer/../../../../../../src/layers/domain/dist/domain.zip", | ||
null | ||
] | ||
] | ||
} |
Binary file added
BIN
+1.9 KB
...per_workspace/builds/a1e39abba50d099b76d78d430066b9778af9131a5dfd167cd3b340d7c38c2100.zip
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
...rkspace/builds/c43f8c22d15b1aaf961e31c2b3923f871f617ec47a2cfa9aae3e63ea434f1d23.plan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"filename": "builds/c43f8c22d15b1aaf961e31c2b3923f871f617ec47a2cfa9aae3e63ea434f1d23.zip", | ||
"runtime": "", | ||
"artifacts_dir": "builds", | ||
"build_plan": [ | ||
[ | ||
"zip", | ||
"modules/api_worker/api_layer/../../../../../../src/layers/repository/dist/repository.zip", | ||
null | ||
] | ||
] | ||
} |
Binary file added
BIN
+231 Bytes
...per_workspace/builds/c43f8c22d15b1aaf961e31c2b3923f871f617ec47a2cfa9aae3e63ea434f1d23.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
infrastructure/terraform/per_workspace/modules/api_worker/api_lambda/lambda.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module "lambda_function" { | ||
source = "terraform-aws-modules/lambda/aws" | ||
version = "6.0.0" | ||
|
||
function_name = var.lambda_name | ||
description = "${replace(var.name, "_", "-")} lambda function" | ||
handler = "src.api.${var.name}.index.handler" | ||
runtime = var.python_version | ||
|
||
source_path = "${path.module}/../../../../../src/api/${var.name}/dist/${var.name}.zip" | ||
|
||
tags = { | ||
Name = replace(var.name, "_", "-") | ||
} | ||
|
||
# layers = [ | ||
# module. | ||
# ] | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
.../per_workspace/modules/api_worker/vars.tf → ...ace/modules/api_worker/api_lambda/vars.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
variable "name" {} | ||
|
||
variable "handler" {} | ||
|
||
variable "python_version" { | ||
default = "python3.11" | ||
} | ||
|
||
variable "source_path" {} | ||
variable "lambda_name" { | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
infrastructure/terraform/per_workspace/modules/api_worker/api_layer/layer.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module "lambda_layer" { | ||
source = "terraform-aws-modules/lambda/aws" | ||
version = "6.0.0" | ||
|
||
create_layer = true | ||
|
||
layer_name = var.layer_name | ||
description = "${replace(var.name, "_", "-")} lambda layer" | ||
compatible_runtimes = [var.python_version] | ||
|
||
source_path = "${path.module}/../../../../../../src/layers/${var.name}/dist/${var.name}.zip" | ||
|
||
tags = { | ||
Name = replace(var.name, "_", "-") | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
infrastructure/terraform/per_workspace/modules/api_worker/api_layer/outputs.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "layer_arn" { | ||
value = module.lambda_layer.lambda_layer_arn | ||
} |
7 changes: 7 additions & 0 deletions
7
infrastructure/terraform/per_workspace/modules/api_worker/api_layer/vars.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
variable "layer_name" {} | ||
|
||
variable "python_version" { | ||
default = "python3.11" | ||
} | ||
|
||
variable "name" {} |
12 changes: 0 additions & 12 deletions
12
infrastructure/terraform/per_workspace/modules/api_worker/lambda.tf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module "sqs" { | ||
source = "terraform-aws-modules/sqs/aws" | ||
|
||
name = var.name | ||
|
||
tags = { | ||
Environment = "dev" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
variable "name" { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters