Skip to content

Commit

Permalink
Add VPC support
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed Aug 11, 2021
1 parent bffec85 commit e1229d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Terraform Lambda Shell

This module creates a Lambda function that can run arbitrary shell commands. It is intended to be used with the [Invicton-Labs/lambda-shell-data/aws](https://registry.terraform.io/modules/Invicton-Labs/lambda-shell-data/aws/latest) and [Invicton-Labs/lambda-shell-resource/aws](https://registry.terraform.io/modules/Invicton-Labs/lambda-shell-resource/aws/latest) modules.
This module creates a Lambda function that can run arbitrary shell commands. It is intended to be used with the [Invicton-Labs/lambda-shell-data/aws](https://registry.terraform.io/modules/Invicton-Labs/lambda-shell-data/aws/latest) and [Invicton-Labs/lambda-shell-resource/aws](https://registry.terraform.io/modules/Invicton-Labs/lambda-shell-resource/aws/latest) modules. See those module pages for documentation on how to use the system.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module "shell_lambda" {
"ModuleAuthor" = "InvictonLabs"
"ModuleUrl" = "https://registry.terraform.io/modules/Invicton-Labs/lambda-shell/aws"
}
vpc_config = var.lambda_vpc_config
}
role_policies = var.lambda_role_policies_json
role_policy_arns = var.lambda_role_policy_arns
Expand Down
9 changes: 9 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ variable "lambda_logs_non_lambda_subscriptions" {
default = []
}

variable "lambda_vpc_config" {
description = "The VPC configuration for the Lambda."
type = object({
subnet_ids = list(string)
security_group_ids = list(string)
})
default = null
}

data "aws_caller_identity" "current" {}

data "aws_arn" "role" {
Expand Down

0 comments on commit e1229d2

Please sign in to comment.