Giter VIP home page Giter VIP logo

karvounis / terraform-aws-lambda-auto-update-security-group-ips Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 27.92 MB

Terraform module that creates the resources in order to be able to update the security group rules based on an AWS Autoscaling Groups's IPs

License: MIT License

HCL 100.00%
terraform terraform-module terraform-aws terraform-managed terraform-docs lambda aws-lambda aws-ec2 aws-autoscaling aws-autoscaling-group aws-security-group lifecycle-hooks

terraform-aws-lambda-auto-update-security-group-ips's Introduction

terraform-aws-lambda-auto-update-security-group-ips

This repo contains the terraform code to create the necessary resources in order to be able to update a Security Group's rules based on the IPs of an Autoscaling Group in AWS.

This repo's README file is autogenerated using terraform-docs!

Lambda Golang Source Code

https://github.com/karvounis/aws-lambda-auto-update-security-group-ips

Requirements

Name Version
terraform >= 0.13, < 0.14
aws ~> 3.0

Providers

Name Version
aws ~> 3.0

Inputs

Name Description Type Default Required
autoscaling_group_name Autoscaling Group name string n/a yes
cloudwatch_event_rule_name Name of the cloudwatch event rule string n/a yes
enabled Enables/Disables this module bool n/a yes
lambda_function_name A unique name for your Lambda Function string n/a yes
security_group_id ID of the security group to auto update string n/a yes
lambda_tags The tags to be added to the lambda function only map(string) {} no
lifecycle_hook_heartbeat_timeout Heartbeat timeout for the lifecycle hook number 3600 no
log_group_namespace Namespace of the log group string "/aws/lambda/" no
log_group_retention_in_days Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire. number 7 no
memory_size Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128 number 128 no
prefix Prefix all resources with this string string "tf-" no
reserved_concurrent_executions The amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1 number -1 no
tags The tags to be added to all the resources map(string) {} no
timeout The amount of time your Lambda Function has to run in seconds. Defaults to 10 number 10 no
vpc_security_group_ids List of security group ids list(string) null no
vpc_subnet_ids List of subnet ids list(string) null no

Outputs

Name Description
this_lambda_cloudwatch_event_rule_arn The ARN of the Cloudwatch Event Rule
this_lambda_cloudwatch_event_rule_name The name of the Cloudwatch Event Rule
this_lambda_cloudwatch_log_group_arn The ARN of the Cloudwatch Log Group
this_lambda_function_arn The ARN of the Lambda Function
this_lambda_function_invoke_arn The Invoke ARN of the Lambda Function
this_lambda_function_kms_key_arn The ARN for the KMS encryption key of Lambda Function
this_lambda_function_last_modified The date Lambda Function resource was last modified
this_lambda_function_name The name of the Lambda Function
this_lambda_function_qualified_arn The ARN identifying your Lambda Function Version
this_lambda_function_source_code_hash Base64-encoded representation of raw SHA-256 sum of the zip file
this_lambda_function_source_code_size The size in bytes of the function .zip file
this_lambda_function_version Latest published version of Lambda Function
this_lambda_role_arn The ARN of the IAM role created for the Lambda Function
this_lambda_role_name The name of the IAM role created for the Lambda Function

terraform-aws-lambda-auto-update-security-group-ips's People

Contributors

karvounis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ryanoatz99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.