|
1 | 1 | # Lambda Function
|
2 | 2 | output "lambda_function_arn" {
|
3 | 3 | description = "The ARN of the Lambda Function"
|
4 |
| - value = module.lambda_function_from_container_image.lambda_function_arn |
| 4 | + value = module.lambda_function_with_docker_build.lambda_function_arn |
5 | 5 | }
|
6 | 6 |
|
7 | 7 | output "lambda_function_arn_static" {
|
8 | 8 | description = "The static ARN of the Lambda Function. Use this to avoid cycle errors between resources (e.g., Step Functions)"
|
9 |
| - value = module.lambda_function_from_container_image.lambda_function_arn_static |
| 9 | + value = module.lambda_function_with_docker_build.lambda_function_arn_static |
10 | 10 | }
|
11 | 11 |
|
12 | 12 | output "lambda_function_invoke_arn" {
|
13 | 13 | description = "The Invoke ARN of the Lambda Function"
|
14 |
| - value = module.lambda_function_from_container_image.lambda_function_invoke_arn |
| 14 | + value = module.lambda_function_with_docker_build.lambda_function_invoke_arn |
15 | 15 | }
|
16 | 16 |
|
17 | 17 | output "lambda_function_name" {
|
18 | 18 | description = "The name of the Lambda Function"
|
19 |
| - value = module.lambda_function_from_container_image.lambda_function_name |
| 19 | + value = module.lambda_function_with_docker_build.lambda_function_name |
20 | 20 | }
|
21 | 21 |
|
22 | 22 | output "lambda_function_qualified_arn" {
|
23 | 23 | description = "The ARN identifying your Lambda Function Version"
|
24 |
| - value = module.lambda_function_from_container_image.lambda_function_qualified_arn |
| 24 | + value = module.lambda_function_with_docker_build.lambda_function_qualified_arn |
25 | 25 | }
|
26 | 26 |
|
27 | 27 | output "lambda_function_version" {
|
28 | 28 | description = "Latest published version of Lambda Function"
|
29 |
| - value = module.lambda_function_from_container_image.lambda_function_version |
| 29 | + value = module.lambda_function_with_docker_build.lambda_function_version |
30 | 30 | }
|
31 | 31 |
|
32 | 32 | output "lambda_function_last_modified" {
|
33 | 33 | description = "The date Lambda Function resource was last modified"
|
34 |
| - value = module.lambda_function_from_container_image.lambda_function_last_modified |
| 34 | + value = module.lambda_function_with_docker_build.lambda_function_last_modified |
35 | 35 | }
|
36 | 36 |
|
37 | 37 | output "lambda_function_kms_key_arn" {
|
38 | 38 | description = "The ARN for the KMS encryption key of Lambda Function"
|
39 |
| - value = module.lambda_function_from_container_image.lambda_function_kms_key_arn |
| 39 | + value = module.lambda_function_with_docker_build.lambda_function_kms_key_arn |
40 | 40 | }
|
41 | 41 |
|
42 | 42 | output "lambda_function_source_code_hash" {
|
43 | 43 | description = "Base64-encoded representation of raw SHA-256 sum of the zip file"
|
44 |
| - value = module.lambda_function_from_container_image.lambda_function_source_code_hash |
| 44 | + value = module.lambda_function_with_docker_build.lambda_function_source_code_hash |
45 | 45 | }
|
46 | 46 |
|
47 | 47 | output "lambda_function_source_code_size" {
|
48 | 48 | description = "The size in bytes of the function .zip file"
|
49 |
| - value = module.lambda_function_from_container_image.lambda_function_source_code_size |
| 49 | + value = module.lambda_function_with_docker_build.lambda_function_source_code_size |
50 | 50 | }
|
51 | 51 |
|
52 | 52 | # Lambda Layer
|
53 | 53 | output "lambda_layer_arn" {
|
54 | 54 | description = "The ARN of the Lambda Layer with version"
|
55 |
| - value = module.lambda_function_from_container_image.lambda_layer_arn |
| 55 | + value = module.lambda_function_with_docker_build.lambda_layer_arn |
56 | 56 | }
|
57 | 57 |
|
58 | 58 | output "lambda_layer_layer_arn" {
|
59 | 59 | description = "The ARN of the Lambda Layer without version"
|
60 |
| - value = module.lambda_function_from_container_image.lambda_layer_layer_arn |
| 60 | + value = module.lambda_function_with_docker_build.lambda_layer_layer_arn |
61 | 61 | }
|
62 | 62 |
|
63 | 63 | output "lambda_layer_created_date" {
|
64 | 64 | description = "The date Lambda Layer resource was created"
|
65 |
| - value = module.lambda_function_from_container_image.lambda_layer_created_date |
| 65 | + value = module.lambda_function_with_docker_build.lambda_layer_created_date |
66 | 66 | }
|
67 | 67 |
|
68 | 68 | output "lambda_layer_source_code_size" {
|
69 | 69 | description = "The size in bytes of the Lambda Layer .zip file"
|
70 |
| - value = module.lambda_function_from_container_image.lambda_layer_source_code_size |
| 70 | + value = module.lambda_function_with_docker_build.lambda_layer_source_code_size |
71 | 71 | }
|
72 | 72 |
|
73 | 73 | output "lambda_layer_version" {
|
74 | 74 | description = "The Lambda Layer version"
|
75 |
| - value = module.lambda_function_from_container_image.lambda_layer_version |
| 75 | + value = module.lambda_function_with_docker_build.lambda_layer_version |
76 | 76 | }
|
77 | 77 |
|
78 | 78 | # IAM Role
|
79 | 79 | output "lambda_role_arn" {
|
80 | 80 | description = "The ARN of the IAM role created for the Lambda Function"
|
81 |
| - value = module.lambda_function_from_container_image.lambda_role_arn |
| 81 | + value = module.lambda_function_with_docker_build.lambda_role_arn |
82 | 82 | }
|
83 | 83 |
|
84 | 84 | output "lambda_role_name" {
|
85 | 85 | description = "The name of the IAM role created for the Lambda Function"
|
86 |
| - value = module.lambda_function_from_container_image.lambda_role_name |
| 86 | + value = module.lambda_function_with_docker_build.lambda_role_name |
87 | 87 | }
|
88 | 88 |
|
89 | 89 | # CloudWatch Log Group
|
90 | 90 | output "lambda_cloudwatch_log_group_arn" {
|
91 | 91 | description = "The ARN of the Cloudwatch Log Group"
|
92 |
| - value = module.lambda_function_from_container_image.lambda_cloudwatch_log_group_arn |
| 92 | + value = module.lambda_function_with_docker_build.lambda_cloudwatch_log_group_arn |
93 | 93 | }
|
94 | 94 |
|
95 |
| -# Docker Image |
| 95 | +# Docker Image by modules/docker-build |
96 | 96 | output "docker_image_uri" {
|
97 | 97 | description = "The ECR Docker image URI used to deploy Lambda Function"
|
98 |
| - value = module.docker_image.image_uri |
| 98 | + value = module.docker_build.image_uri |
99 | 99 | }
|
100 | 100 |
|
101 | 101 | output "docker_image_id" {
|
102 | 102 | description = "The ID of the Docker image"
|
103 |
| - value = module.docker_image.image_id |
| 103 | + value = module.docker_build.image_id |
104 | 104 | }
|
105 | 105 |
|
106 | 106 | output "docker_image_files_to_hash" {
|
|
0 commit comments