|
| 1 | +<!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. --> |
1 | 2 |
|
2 | 3 |
|
| 4 | +<h1 align="center"> |
| 5 | + Terraform AWS Security Group |
| 6 | +</h1> |
| 7 | + |
| 8 | +<p align="center" style="font-size: 1.2rem;"> |
| 9 | + This terraform module creates set of Security Group and Security Group Rules resources in various combinations. |
| 10 | + </p> |
| 11 | + |
| 12 | +<p align="center"> |
| 13 | + |
| 14 | +<a href="https://www.terraform.io"> |
| 15 | + <img src="https://img.shields.io/badge/Terraform-v0.12-green" alt="Terraform"> |
| 16 | +</a> |
| 17 | +<a href="LICENSE.md"> |
| 18 | + <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="Licence"> |
| 19 | +</a> |
| 20 | + |
| 21 | + |
| 22 | +</p> |
| 23 | +<p align="center"> |
| 24 | + |
| 25 | +<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/terraform-aws-security-group'> |
| 26 | + <img title="Share on Facebook" src="https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png" /> |
| 27 | +</a> |
| 28 | +<a href='https://www.linkedin.com/shareArticle?mini=true&title=Terraform+AWS+Security+Group&url=https://github.com/clouddrove/terraform-aws-security-group'> |
| 29 | + <img title="Share on LinkedIn" src="https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png" /> |
| 30 | +</a> |
| 31 | +<a href='https://twitter.com/intent/tweet/?text=Terraform+AWS+Security+Group&url=https://github.com/clouddrove/terraform-aws-security-group'> |
| 32 | + <img title="Share on Twitter" src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" /> |
| 33 | +</a> |
| 34 | + |
| 35 | +</p> |
| 36 | +<hr> |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +## Prerequisites |
| 43 | + |
| 44 | +This module has a few dependencies: |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +## Examples |
| 52 | + |
| 53 | +**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-aws-security-group/releases). |
| 54 | + |
| 55 | + |
| 56 | +### Simple Example |
| 57 | +Here is an example of how you can use this module in your inventory structure: |
| 58 | +```hcl |
| 59 | + module "security_group" { |
| 60 | + source = "git::https://github.com/clouddrove/terraform-aws-security-group.git" |
| 61 | + name = "security-group" |
| 62 | + application = "clouddrove" |
| 63 | + environment = "test" |
| 64 | + label_order = ["environment", "name", "application"] |
| 65 | + vpc_id = "vpc-xxxxxxxxx" |
| 66 | + allowed_ip = ["172.16.0.0/16", "10.0.0.0/16"] |
| 67 | + allowed_ports = [22, 27017] |
| 68 | + } |
| 69 | +``` |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +## Inputs |
| 74 | + |
| 75 | +| Name | Description | Type | Default | Required | |
| 76 | +|------|-------------|:----:|:-----:|:-----:| |
| 77 | +| allowed_ip | List of allowed ip. | list | `<list>` | no | |
| 78 | +| allowed_ports | List of allowed ingress ports. | list | `<list>` | no | |
| 79 | +| application | Application (e.g. `cd` or `clouddrove`). | string | `` | no | |
| 80 | +| description | The security group description. | string | `Instance default security group (only egress access is allowed).` | no | |
| 81 | +| enable_security_group | Enable default Security Group with only Egress traffic allowed. | bool | `true` | no | |
| 82 | +| environment | Environment (e.g. `prod`, `dev`, `staging`). | string | `` | no | |
| 83 | +| label_order | Label order, e.g. `name`,`application`. | list | `<list>` | no | |
| 84 | +| name | Name (e.g. `app` or `cluster`). | string | `` | no | |
| 85 | +| security_groups | List of Security Group IDs allowed to connect to the instance. | list | `<list>` | no | |
| 86 | +| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). | map(string) | `<map>` | no | |
| 87 | +| vpc_id | The ID of the VPC that the instance security group belongs to. | string | `` | no | |
| 88 | + |
| 89 | +## Outputs |
| 90 | + |
| 91 | +| Name | Description | |
| 92 | +|------|-------------| |
| 93 | +| security_group_ids | IDs on the AWS Security Groups associated with the instance. | |
| 94 | +| tags | A mapping of public tags to assign to the resource. | |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | +## Testing |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +## Feedback |
| 103 | +If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-security-group/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com). |
| 104 | + |
| 105 | +If you have found it worth your time, go ahead and give us a * on [our GitHub](https://github.com/clouddrove/terraform-aws-security-group)! |
| 106 | + |
| 107 | +## About us |
| 108 | + |
| 109 | +At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering. |
| 110 | + |
| 111 | +<p align="center">We are <b> The Cloud Experts!</b></p> |
| 112 | +<hr /> |
| 113 | +<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p> |
| 114 | + |
| 115 | + [website]: https://clouddrove.com |
| 116 | + [github]: https://github.com/clouddrove |
| 117 | + [linkedin]: https://cpco.io/linkedin |
| 118 | + [twitter]: https://twitter.com/clouddrove/ |
| 119 | + [email]: https://clouddrove.com/contact-us.html |
| 120 | + [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language= |
0 commit comments