Skip to content

Commit 708aca0

Browse files
committed
added attach_network_policy as variable
1 parent 427c3f8 commit 708aca0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Terraform module for creating the lambda and the github actions IAM Role deploye
4646
| <a name="input_additional_lambda_policy_statements"></a> [additional\_lambda\_policy\_statements](#input\_additional\_lambda\_policy\_statements) | Additional Inline Lambda Policy Statements | `any` | `{}` | no |
4747
| <a name="input_allowed_triggers"></a> [allowed\_triggers](#input\_allowed\_triggers) | Map of allowed triggers to create Lambda permissions | `map(any)` | `{}` | no |
4848
| <a name="input_app_metadata"></a> [app\_metadata](#input\_app\_metadata) | Application component prefix, name used to generate resource names | <pre>object({<br> prefix = string<br> name = string<br> env = string<br> })</pre> | n/a | yes |
49+
| <a name="input_attach_network_policy"></a> [attach\_network\_policy](#input\_attach\_network\_policy) | Flag to attach network policy to use VPC subnet and security group | `bool` | `true` | no |
4950
| <a name="input_authorization_type"></a> [authorization\_type](#input\_authorization\_type) | The type of authentication that the Lambda Function URL uses. Set to 'AWS\_IAM' to restrict access to authenticated IAM users only. Set to 'NONE' to bypass IAM authentication and create a public endpoint. | `string` | `"AWS_IAM"` | no |
5051
| <a name="input_cors"></a> [cors](#input\_cors) | CORS settings to be used by the Lambda Function URL | `any` | `{}` | no |
5152
| <a name="input_create_gha_deployer"></a> [create\_gha\_deployer](#input\_create\_gha\_deployer) | Flag for creating Github Actions Deployer deployer | `bool` | `true` | no |

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ module "lambda" {
3232

3333
vpc_subnet_ids = var.vpc_subnet_ids
3434
vpc_security_group_ids = var.vpc_security_group_ids
35-
attach_network_policy = true
35+
attach_network_policy = var.attach_network_policy
3636
}

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,9 @@ variable "vpc_security_group_ids" {
119119
description = "Listof Security Groups"
120120
type = list(string)
121121
}
122+
123+
variable "attach_network_policy" {
124+
description = "Flag to attach network policy to use VPC subnet and security group"
125+
type = bool
126+
default = true
127+
}

0 commit comments

Comments
 (0)