1
- [ ![ ] ( https://img.shields.io/badge/license-Apache%202-blue.svg )] ( https://www.apache.org/licenses/LICENSE-2.0 )
2
-
3
- # terraform-aws-target-group
4
- Terraform module for Target Group
1
+ <p align =" center " >
2
+ <a href="https://github.com/tomarv2/terraform-aws-target-group/actions/workflows/security_scans.yml" alt="Security Scans">
3
+ <img src="https://github.com/tomarv2/terraform-aws-target-group/actions/workflows/security_scans.yml/badge.svg?branch=main" /></a>
4
+ <a href="https://www.apache.org/licenses/LICENSE-2.0" alt="license">
5
+ <img src="https://img.shields.io/github/license/tomarv2/terraform-aws-target-group" /></a>
6
+ <a href="https://github.com/tomarv2/terraform-aws-target-group/tags" alt="GitHub tag">
7
+ <img src="https://img.shields.io/github/v/tag/tomarv2/terraform-aws-target-group" /></a>
8
+ <a href="https://github.com/tomarv2/terraform-aws-target-group/pulse" alt="Activity">
9
+ <img src="https://img.shields.io/github/commit-activity/m/tomarv2/terraform-aws-target-group" /></a>
10
+ <a href="https://stackoverflow.com/users/6679867/tomarv2" alt="Stack Exchange reputation">
11
+ <img src="https://img.shields.io/stackexchange/stackoverflow/r/6679867"></a>
12
+ <a href="https://discord.gg/XH975bzN" alt="chat on Discord">
13
+ <img src="https://img.shields.io/discord/813961944443912223?logo=discord"></a>
14
+ <a href="https://twitter.com/intent/follow?screen_name=varuntomar2019" alt="follow on Twitter">
15
+ <img src="https://img.shields.io/twitter/follow/varuntomar2019?style=social&logo=twitter"></a>
16
+ </p >
17
+
18
+ # Terraform module for AWS Target Group
5
19
6
20
## Versions
7
21
8
22
- Module tested for Terraform 0.14.
9
23
- AWS provider version [ 3.29.0] ( https://registry.terraform.io/providers/hashicorp/aws/latest )
10
24
- ` main ` branch: Provider versions not pinned to keep up with Terraform releases
11
- - ` tags ` releases: Tags are pinned with versions (use latest tag in your releases)
25
+ - ` tags ` releases: Tags are pinned with versions (use latest
26
+ <a href =" https://github.com/tomarv2/terraform-aws-target-group/tags " alt =" GitHub tag " >
27
+ <img src =" https://img.shields.io/github/v/tag/tomarv2/terraform-aws-target-group " /></a >
28
+ in your releases)
12
29
13
30
** NOTE:**
14
31
@@ -33,18 +50,9 @@ pip install tfremote
33
50
export TF_AWS_BUCKET=<remote state bucket name>
34
51
export TF_AWS_PROFILE=default
35
52
export TF_AWS_BUCKET_REGION=us-west-2
36
- export PATH=$PATH:/usr/local/bin/
37
53
```
38
54
39
- - Update:
40
- ```
41
- example/custom/sample.tfvars
42
- ```
43
-
44
- - Change to:
45
- ```
46
- example/base
47
- ```
55
+ - Updated ` examples ` directory with required values
48
56
49
57
- Run and verify the output before deploying:
50
58
```
@@ -61,7 +69,43 @@ tf -cloud aws apply -var-file <path to .tfvars file>
61
69
tf -cloud aws destroy -var-file <path to .tfvars file>
62
70
```
63
71
64
- Please refer to example directory [ link] ( example/README.md ) for references.
72
+ > ❗️ ** Important** - Two variables are required for using ` tf ` package:
73
+ >
74
+ > - teamid
75
+ > - prjid
76
+ >
77
+ > These variables are required to set backend path in the remote storage.
78
+ > Variables can be defined using:
79
+ >
80
+ > - As ` inline variables ` e.g.: ` -var='teamid=demo-team' -var='prjid=demo-project' `
81
+ > - Inside ` .tfvars ` file e.g.: ` -var-file=<tfvars file location> `
82
+ >
83
+ > For more information refer to [ Terraform documentation] ( https://www.terraform.io/docs/language/values/variables.html )
84
+
85
+ ##### Target Group
86
+ ```
87
+ module "target_group" {
88
+ source = "../"
89
+
90
+ email = "demo@demo.com"
91
+ account_id = "12345679012"
92
+ lb_protocol = "HTTP"
93
+ lb_port = [80]
94
+ healthcheck_path = "/"
95
+ healthy_threshold = "2"
96
+ healthcheck_matcher = "200"
97
+ healthcheck_timeout = "15"
98
+ unhealthy_threshold = "3"
99
+ healthcheck_interval = "30"
100
+ #-----------------------------------------------
101
+ # Note: Do not change teamid and prjid once set.
102
+ teamid = var.teamid
103
+ prjid = var.prjid
104
+ }
105
+
106
+ ```
107
+
108
+ Please refer to examples directory [ link] ( examples ) for references.
65
109
66
110
## Inputs
67
111
0 commit comments