File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 11module "security_group_checker" {
2- source = " ../../"
3- source_file = " ../../aws-lambda-script/sg-checker.py"
4- output_path = " sg-checker.zip"
5- function_name = " security_group_checker_lambda"
6- table_name = " sg-checker-table"
7- attribute_name = " SecurityGroupId"
8- schedule_expression = " rate(1 minute)"
9- handler = " sg-checker.handler"
10- dynamodb_policy_name = " sg-checker-dynamodb-policy"
11- cloudwatch_event_rule_name = " trigger-sg-checker-lambda"
12- lambda_role_name = " iam_for_lambda"
2+ source = " ../../"
3+ source_file = " ../../aws-lambda-script/sg-checker.py"
4+ output_path = " sg-checker.zip"
5+ function_name = " security_group_checker_lambda"
6+ table_name = " sg-checker-table"
7+ attribute_name = " SecurityGroupId"
8+ schedule_expression = " rate(1 minute)"
9+ handler = " sg-checker.handler"
10+ dynamodb_policy_name = " sg-checker-dynamodb-policy"
11+ cloudwatch_event_rule_name = " trigger-sg-checker-lambda"
12+ lambda_role_name = " iam_for_lambda"
1313}
Original file line number Diff line number Diff line change @@ -4,51 +4,51 @@ variable "region" {
44}
55
66variable "source_file" {
7- type = string
7+ type = string
88 description = " The path in your filesystem where your script is located"
99}
1010
1111variable "output_path" {
12- type = string
12+ type = string
1313 description = " The path and name of the resulting zip file"
1414}
1515
1616variable "function_name" {
17- type = string
17+ type = string
1818 description = " Name of the aws lambda function"
1919}
2020
2121variable "table_name" {
22- type = string
22+ type = string
2323 description = " Name of the DynamoDB table"
2424}
2525
2626variable "attribute_name" {
27- type = string
27+ type = string
2828 description = " Name of the DynamoDB attribute"
2929}
3030
3131variable "schedule_expression" {
32- type = string
32+ type = string
3333 description = " Cloudwatch rule rate expression for how frequent you want the lambda function to run"
3434}
3535
3636variable "handler" {
37- type = string
37+ type = string
3838 description = " Handler for the aws lambda function, the structure should be the following --> filename.mainfunction"
3939}
4040
4141variable "dynamodb_policy_name" {
42- type = string
42+ type = string
4343 description = " Name of the DynamoDB iam policy"
4444}
4545
4646variable "cloudwatch_event_rule_name" {
47- type = string
47+ type = string
4848 description = " Name of the CW event rule"
4949}
5050
5151variable "lambda_role_name" {
52- type = string
52+ type = string
5353 description = " Name of the aws lambda execution role"
5454}
You can’t perform that action at this time.
0 commit comments