@@ -21,17 +21,18 @@ This module provides a Lambda function which logs to CloudWatch. If no image URI
2121
2222## Inputs
2323
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 |
3536
3637### ` vpc_config `
3738
@@ -67,9 +68,11 @@ This module provides a Lambda function which logs to CloudWatch. If no image URI
6768module "function" {
6869 source = "github.com/custom-terraform-aws-modules/function"
6970
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+
7376 policies = [
7477 "arn:aws:iam::aws:policy/aws-service-role/AccessAnalyzerServiceRolePolicy",
7578 "arn:aws:iam::aws:policy/AdministratorAccess-Amplify"
0 commit comments