@@ -21,17 +21,17 @@ 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 | A flag for make the Lambda function submit logs to CloudWatch. | ` bool ` | false | no |
30- | image_uri | URI of the image which will be pulled by the Lambda function to execute. | ` string ` | "" | 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 | A flag for make the Lambda function submit logs to CloudWatch. | ` bool ` | false | 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 |
3535
3636### ` vpc_config `
3737
@@ -40,6 +40,12 @@ This module provides a Lambda function which logs to CloudWatch. If no image URI
4040| subnets | List of subnet IDs in which the Lambda function will run in. | ` list(string) ` | n/a | yes |
4141| security_groups | List of security group IDs the Lambda function will hold. | ` list(string) ` | n/a | yes |
4242
43+ ### ` image `
44+
45+ | Name | Description | Type | Default | Required |
46+ | ---- | ----------------- | -------- | ------- | :------: |
47+ | uri | URI to the image. | ` string ` | n/a | yes |
48+
4349## Outputs
4450
4551| Name | Description |
@@ -57,8 +63,10 @@ module "function" {
5763 "arn:aws:iam::aws:policy/aws-service-role/AccessAnalyzerServiceRolePolicy",
5864 "arn:aws:iam::aws:policy/AdministratorAccess-Amplify"
5965 ]
60- log = true
61- image_uri = "test.registry:latest"
66+ log = true
67+ image = {
68+ uri = "test.registry:latest"
69+ }
6270 memory_size = 128
6371 timeout = 3
6472 env_variables = {
0 commit comments