Skip to content

Commit b7de39d

Browse files
committed
Added more runtime examples for Rust, Go, Java
1 parent b64057c commit b7de39d

File tree

4 files changed

+128
-107
lines changed

4 files changed

+128
-107
lines changed

examples/runtimes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Note that this example may create resources which cost money. Run `terraform des
2323

2424
| Name | Version |
2525
|------|---------|
26-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
26+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.2 |
2727
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.63 |
2828
| <a name="requirement_http"></a> [http](#requirement\_http) | >= 3.0 |
2929
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.0 |

examples/runtimes/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.0"
2+
required_version = ">= 1.2"
33

44
required_providers {
55
aws = {

examples/simple/README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,26 @@ No inputs.
4747

4848
## Outputs
4949

50-
No outputs.
50+
| Name | Description |
51+
|------|-------------|
52+
| <a name="output_lambda_cloudwatch_log_group_arn"></a> [lambda\_cloudwatch\_log\_group\_arn](#output\_lambda\_cloudwatch\_log\_group\_arn) | The ARN of the Cloudwatch Log Group |
53+
| <a name="output_lambda_function_arn"></a> [lambda\_function\_arn](#output\_lambda\_function\_arn) | The ARN of the Lambda Function |
54+
| <a name="output_lambda_function_arn_static"></a> [lambda\_function\_arn\_static](#output\_lambda\_function\_arn\_static) | The static ARN of the Lambda Function. Use this to avoid cycle errors between resources (e.g., Step Functions) |
55+
| <a name="output_lambda_function_invoke_arn"></a> [lambda\_function\_invoke\_arn](#output\_lambda\_function\_invoke\_arn) | The Invoke ARN of the Lambda Function |
56+
| <a name="output_lambda_function_kms_key_arn"></a> [lambda\_function\_kms\_key\_arn](#output\_lambda\_function\_kms\_key\_arn) | The ARN for the KMS encryption key of Lambda Function |
57+
| <a name="output_lambda_function_last_modified"></a> [lambda\_function\_last\_modified](#output\_lambda\_function\_last\_modified) | The date Lambda Function resource was last modified |
58+
| <a name="output_lambda_function_name"></a> [lambda\_function\_name](#output\_lambda\_function\_name) | The name of the Lambda Function |
59+
| <a name="output_lambda_function_qualified_arn"></a> [lambda\_function\_qualified\_arn](#output\_lambda\_function\_qualified\_arn) | The ARN identifying your Lambda Function Version |
60+
| <a name="output_lambda_function_source_code_hash"></a> [lambda\_function\_source\_code\_hash](#output\_lambda\_function\_source\_code\_hash) | Base64-encoded representation of raw SHA-256 sum of the zip file |
61+
| <a name="output_lambda_function_source_code_size"></a> [lambda\_function\_source\_code\_size](#output\_lambda\_function\_source\_code\_size) | The size in bytes of the function .zip file |
62+
| <a name="output_lambda_function_version"></a> [lambda\_function\_version](#output\_lambda\_function\_version) | Latest published version of Lambda Function |
63+
| <a name="output_lambda_layer_arn"></a> [lambda\_layer\_arn](#output\_lambda\_layer\_arn) | The ARN of the Lambda Layer with version |
64+
| <a name="output_lambda_layer_created_date"></a> [lambda\_layer\_created\_date](#output\_lambda\_layer\_created\_date) | The date Lambda Layer resource was created |
65+
| <a name="output_lambda_layer_layer_arn"></a> [lambda\_layer\_layer\_arn](#output\_lambda\_layer\_layer\_arn) | The ARN of the Lambda Layer without version |
66+
| <a name="output_lambda_layer_source_code_size"></a> [lambda\_layer\_source\_code\_size](#output\_lambda\_layer\_source\_code\_size) | The size in bytes of the Lambda Layer .zip file |
67+
| <a name="output_lambda_layer_version"></a> [lambda\_layer\_version](#output\_lambda\_layer\_version) | The Lambda Layer version |
68+
| <a name="output_lambda_role_arn"></a> [lambda\_role\_arn](#output\_lambda\_role\_arn) | The ARN of the IAM role created for the Lambda Function |
69+
| <a name="output_lambda_role_name"></a> [lambda\_role\_name](#output\_lambda\_role\_name) | The name of the IAM role created for the Lambda Function |
70+
| <a name="output_local_filename"></a> [local\_filename](#output\_local\_filename) | The filename of zip archive deployed (if deployment was from local) |
71+
| <a name="output_s3_object"></a> [s3\_object](#output\_s3\_object) | The map with S3 object data of zip archive deployed (if deployment was from S3) |
5172
<!-- END_TF_DOCS -->

examples/simple/outputs.tf

Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,104 @@
1-
# # Lambda Function
2-
# output "lambda_function_arn" {
3-
# description = "The ARN of the Lambda Function"
4-
# value = module.lambda_function.lambda_function_arn
5-
# }
6-
7-
# output "lambda_function_arn_static" {
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.lambda_function_arn_static
10-
# }
11-
12-
# output "lambda_function_invoke_arn" {
13-
# description = "The Invoke ARN of the Lambda Function"
14-
# value = module.lambda_function.lambda_function_invoke_arn
15-
# }
16-
17-
# output "lambda_function_name" {
18-
# description = "The name of the Lambda Function"
19-
# value = module.lambda_function.lambda_function_name
20-
# }
21-
22-
# output "lambda_function_qualified_arn" {
23-
# description = "The ARN identifying your Lambda Function Version"
24-
# value = module.lambda_function.lambda_function_qualified_arn
25-
# }
26-
27-
# output "lambda_function_version" {
28-
# description = "Latest published version of Lambda Function"
29-
# value = module.lambda_function.lambda_function_version
30-
# }
31-
32-
# output "lambda_function_last_modified" {
33-
# description = "The date Lambda Function resource was last modified"
34-
# value = module.lambda_function.lambda_function_last_modified
35-
# }
36-
37-
# output "lambda_function_kms_key_arn" {
38-
# description = "The ARN for the KMS encryption key of Lambda Function"
39-
# value = module.lambda_function.lambda_function_kms_key_arn
40-
# }
41-
42-
# output "lambda_function_source_code_hash" {
43-
# description = "Base64-encoded representation of raw SHA-256 sum of the zip file"
44-
# value = module.lambda_function.lambda_function_source_code_hash
45-
# }
46-
47-
# output "lambda_function_source_code_size" {
48-
# description = "The size in bytes of the function .zip file"
49-
# value = module.lambda_function.lambda_function_source_code_size
50-
# }
51-
52-
# # Lambda Layer
53-
# output "lambda_layer_arn" {
54-
# description = "The ARN of the Lambda Layer with version"
55-
# value = module.lambda_function.lambda_layer_arn
56-
# }
57-
58-
# output "lambda_layer_layer_arn" {
59-
# description = "The ARN of the Lambda Layer without version"
60-
# value = module.lambda_function.lambda_layer_layer_arn
61-
# }
62-
63-
# output "lambda_layer_created_date" {
64-
# description = "The date Lambda Layer resource was created"
65-
# value = module.lambda_function.lambda_layer_created_date
66-
# }
67-
68-
# output "lambda_layer_source_code_size" {
69-
# description = "The size in bytes of the Lambda Layer .zip file"
70-
# value = module.lambda_function.lambda_layer_source_code_size
71-
# }
72-
73-
# output "lambda_layer_version" {
74-
# description = "The Lambda Layer version"
75-
# value = module.lambda_function.lambda_layer_version
76-
# }
77-
78-
# # IAM Role
79-
# output "lambda_role_arn" {
80-
# description = "The ARN of the IAM role created for the Lambda Function"
81-
# value = module.lambda_function.lambda_role_arn
82-
# }
83-
84-
# output "lambda_role_name" {
85-
# description = "The name of the IAM role created for the Lambda Function"
86-
# value = module.lambda_function.lambda_role_name
87-
# }
88-
89-
# # CloudWatch Log Group
90-
# output "lambda_cloudwatch_log_group_arn" {
91-
# description = "The ARN of the Cloudwatch Log Group"
92-
# value = module.lambda_function.lambda_cloudwatch_log_group_arn
93-
# }
94-
95-
# # Deployment package
96-
# output "local_filename" {
97-
# description = "The filename of zip archive deployed (if deployment was from local)"
98-
# value = module.lambda_function.local_filename
99-
# }
100-
101-
# output "s3_object" {
102-
# description = "The map with S3 object data of zip archive deployed (if deployment was from S3)"
103-
# value = module.lambda_function.s3_object
104-
# }
1+
# Lambda Function
2+
output "lambda_function_arn" {
3+
description = "The ARN of the Lambda Function"
4+
value = module.lambda_function.lambda_function_arn
5+
}
6+
7+
output "lambda_function_arn_static" {
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.lambda_function_arn_static
10+
}
11+
12+
output "lambda_function_invoke_arn" {
13+
description = "The Invoke ARN of the Lambda Function"
14+
value = module.lambda_function.lambda_function_invoke_arn
15+
}
16+
17+
output "lambda_function_name" {
18+
description = "The name of the Lambda Function"
19+
value = module.lambda_function.lambda_function_name
20+
}
21+
22+
output "lambda_function_qualified_arn" {
23+
description = "The ARN identifying your Lambda Function Version"
24+
value = module.lambda_function.lambda_function_qualified_arn
25+
}
26+
27+
output "lambda_function_version" {
28+
description = "Latest published version of Lambda Function"
29+
value = module.lambda_function.lambda_function_version
30+
}
31+
32+
output "lambda_function_last_modified" {
33+
description = "The date Lambda Function resource was last modified"
34+
value = module.lambda_function.lambda_function_last_modified
35+
}
36+
37+
output "lambda_function_kms_key_arn" {
38+
description = "The ARN for the KMS encryption key of Lambda Function"
39+
value = module.lambda_function.lambda_function_kms_key_arn
40+
}
41+
42+
output "lambda_function_source_code_hash" {
43+
description = "Base64-encoded representation of raw SHA-256 sum of the zip file"
44+
value = module.lambda_function.lambda_function_source_code_hash
45+
}
46+
47+
output "lambda_function_source_code_size" {
48+
description = "The size in bytes of the function .zip file"
49+
value = module.lambda_function.lambda_function_source_code_size
50+
}
51+
52+
# Lambda Layer
53+
output "lambda_layer_arn" {
54+
description = "The ARN of the Lambda Layer with version"
55+
value = module.lambda_function.lambda_layer_arn
56+
}
57+
58+
output "lambda_layer_layer_arn" {
59+
description = "The ARN of the Lambda Layer without version"
60+
value = module.lambda_function.lambda_layer_layer_arn
61+
}
62+
63+
output "lambda_layer_created_date" {
64+
description = "The date Lambda Layer resource was created"
65+
value = module.lambda_function.lambda_layer_created_date
66+
}
67+
68+
output "lambda_layer_source_code_size" {
69+
description = "The size in bytes of the Lambda Layer .zip file"
70+
value = module.lambda_function.lambda_layer_source_code_size
71+
}
72+
73+
output "lambda_layer_version" {
74+
description = "The Lambda Layer version"
75+
value = module.lambda_function.lambda_layer_version
76+
}
77+
78+
# IAM Role
79+
output "lambda_role_arn" {
80+
description = "The ARN of the IAM role created for the Lambda Function"
81+
value = module.lambda_function.lambda_role_arn
82+
}
83+
84+
output "lambda_role_name" {
85+
description = "The name of the IAM role created for the Lambda Function"
86+
value = module.lambda_function.lambda_role_name
87+
}
88+
89+
# CloudWatch Log Group
90+
output "lambda_cloudwatch_log_group_arn" {
91+
description = "The ARN of the Cloudwatch Log Group"
92+
value = module.lambda_function.lambda_cloudwatch_log_group_arn
93+
}
94+
95+
# Deployment package
96+
output "local_filename" {
97+
description = "The filename of zip archive deployed (if deployment was from local)"
98+
value = module.lambda_function.local_filename
99+
}
100+
101+
output "s3_object" {
102+
description = "The map with S3 object data of zip archive deployed (if deployment was from S3)"
103+
value = module.lambda_function.s3_object
104+
}

0 commit comments

Comments
 (0)