diff --git a/README.md b/README.md index 360c292..aeb4479 100644 --- a/README.md +++ b/README.md @@ -60,32 +60,33 @@ No requirements. ## Inputs -| Name | Description | Type | Default | Required | -| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------------ | :------: | -| build\_command | This is the build command to execute. It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables. | `string` | `""` | no | -| build\_triggers | A map of values which should cause the build command to re-run. Values are meant to be interpolated references to variables or attributes of other resources. | `list(string)` | `[]` | no | -| dead\_letter\_config | Nested block to configure the function's dead letter queue. |
object({| `null` | no | -| description | Description of what your Lambda Function does. | `string` | `""` | no | -| environment | A map that defines environment variables for the Lambda function. |
target_arn = string
})
object({| `null` | no | -| exclude\_files | A list of directories or folders to ignore, e.g.
variables = map(string)
})
{| no | -| timeout | The maximum number of seconds the lambda function to run until timeout. | `number` | `3` | no | -| tracing\_config | Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. |
"Terraform": "true"
}
object({| `null` | no | -| vpc\_config | Provide this to allow your function to access your VPC. | `any` | `null` | no | +| Name | Description | Type | Default | Required | +| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | --------------------------------------------- | :------: | +| allowed\_services | A list of AWS Services that are allowed to access this lambda. | `list(string)` |
mode = string
})
[| no | +| build\_command | This is the build command to execute. It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables. | `string` | `""` | no | +| build\_triggers | A map of values which should cause the build command to re-run. Values are meant to be interpolated references to variables or attributes of other resources. | `list` | `[]` | no | +| dead\_letter\_config | Nested block to configure the function's dead letter queue. |
"lambda.amazonaws.com"
]
object({| `null` | no | +| description | Description of what your Lambda Function does. | `string` | `""` | no | +| environment | A map that defines environment variables for the Lambda function. |
target_arn = string
})
object({| `null` | no | +| exclude\_files | A list of directories or folders to ignore, e.g.
variables = map(string)
})
{| no | +| timeout | The maximum number of seconds the lambda function to run until timeout. | `number` | `3` | no | +| tracing\_config | Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. |
"Terraform": "true"
}
object({| `null` | no | +| vpc\_config | Provide this to allow your function to access your VPC. | `any` | `null` | no | ## Outputs diff --git a/main.tf b/main.tf index 2b34210..7cd6d2b 100644 --- a/main.tf +++ b/main.tf @@ -2,24 +2,20 @@ # IAM role for Lambda function #--------------------------------------------------------------------------------------------------- resource "aws_iam_role" "this" { - name_prefix = var.iam_role_name_prefix - - assume_role_policy = <
mode = string
})