@@ -21,17 +21,18 @@ This module provides a Lambda function which logs to CloudWatch. If no image URI
21
21
22
22
## Inputs
23
23
24
- | Name | Description | Type | Default | Required |
25
- | ------------- | ---------------------------------------------------------------------------- | -------------- | ------- | :------: |
26
- | identifier | Unique identifier to differentiate global resources. | ` string ` | n/a | yes |
27
- | policies | List of IAM policy ARNs for the Lambda's IAM role. | ` list(string) ` | [ ] | no |
28
- | vpc_config | Object to define the subnets and security groups for the Lambda function. | ` object ` | null | no |
29
- | log_config | Object to define logging configuration of the Lambda function to CloudWatch. | ` object ` | null | no |
30
- | image | Object of the image which will be pulled by the Lambda function to execute. | ` object ` | null | no |
31
- | memory_size | Amount of memory in MB the Lambda function can use at runtime. | ` number ` | 128 | no |
32
- | timeout | Amount of time the Lambda function has to run in seconds. | ` number ` | 3 | no |
33
- | env_variables | A map of environment variables for the Lambda function at runtime. | ` map(string) ` | {} | no |
34
- | tags | A map of tags to add to all resources. | ` map(string) ` | {} | no |
24
+ | Name | Description | Type | Default | Required |
25
+ | ------------- | --------------------------------------------------------------------------------------------- | -------------- | -------- | :------: |
26
+ | identifier | Unique identifier to differentiate global resources. | ` string ` | n/a | yes |
27
+ | policies | List of IAM policy ARNs for the Lambda's IAM role. | ` list(string) ` | [ ] | no |
28
+ | vpc_config | Object to define the subnets and security groups for the Lambda function. | ` object ` | null | no |
29
+ | log_config | Object to define logging configuration of the Lambda function to CloudWatch. | ` object ` | null | no |
30
+ | image | Object of the image which will be pulled by the Lambda function to execute. | ` object ` | null | no |
31
+ | architecture | Instruction set architecture for the Lambda function. Valid values are: 'x86_64' and 'arm64'. | ` string ` | "x86_64" | no |
32
+ | memory_size | Amount of memory in MB the Lambda function can use at runtime. | ` number ` | 128 | no |
33
+ | timeout | Amount of time the Lambda function has to run in seconds. | ` number ` | 3 | no |
34
+ | env_variables | A map of environment variables for the Lambda function at runtime. | ` map(string) ` | {} | no |
35
+ | tags | A map of tags to add to all resources. | ` map(string) ` | {} | no |
35
36
36
37
### ` vpc_config `
37
38
@@ -67,9 +68,11 @@ This module provides a Lambda function which logs to CloudWatch. If no image URI
67
68
module "function" {
68
69
source = "github.com/custom-terraform-aws-modules/function"
69
70
70
- identifier = "example-function-dev"
71
- memory_size = 128
72
- timeout = 3
71
+ identifier = "example-function-dev"
72
+ architecture = "x86_64"
73
+ memory_size = 128
74
+ timeout = 3
75
+
73
76
policies = [
74
77
"arn:aws:iam::aws:policy/aws-service-role/AccessAnalyzerServiceRolePolicy",
75
78
"arn:aws:iam::aws:policy/AdministratorAccess-Amplify"
0 commit comments