Coder Social home page Coder Social logo

sg-nia-mc's Introduction

AWS Security Group Demo Module

This Terraform module adds a security group rule that allows traffic from a node. This is a simplistic module created for Consul-Terraform-Sync demoing purposes.

Feature

This module uses the AWS Terraform provider to create a new security group rule, allowing ingress TCP traffic on all ports from an EC2 instance.

Requirements

Ecosystem Requirements

Ecosystem Version
consul >= 1.7
consul-terraform-sync >= 0.1.0
terraform >= 0.13

Terraform Providers

Name Version
aws >= 3.56

Setup

  1. Create an AWS security group.

Usage

Input Variable Required Description
security_group_id true The ID of the security group

User Config for Consul Terraform Sync

example.hcl

task {
  name           = "security-group-demo-task"
  description    = "allow all ingress TCP traffic to a security group"
  source         = "mkam/security-group-demo/aws"
  version        = "0.1.0"
  providers      = ["aws"]
  services       = ["web", "app"]
  variable_files = ["security_input.tfvars"]
}

driver "terraform" {
  required_providers = {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "3.56.0"
    }
  }
}

terraform_provider "aws" {
  region = "us-west-1"
}

Variable file

Optional input variable file defined by a user for the task above.

security_input.tfvars

security_group_id = "sg-123"

sg-nia-mc's People

Contributors

ramramhariram avatar mkam avatar

Watchers

 avatar

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.