Skip to content

Commit 8181c90

Browse files
author
Sohan Yadav
authored
Merge pull request #11 from clouddrove/0.14
0.14
2 parents c2c4d2a + 2dfd1a6 commit 8181c90

File tree

14 files changed

+177
-159
lines changed

14 files changed

+177
-159
lines changed

.github/workflows/readme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
python-version: '3.x'
1919

2020
- name: 'create readme'
21-
uses: 'clouddrove/github-actions@v4.0'
21+
uses: 'clouddrove/github-actions@v6.0'
2222
with:
2323
actions_subcommand: 'readme'
2424
github_token: '${{ secrets.GITHUB}}'
@@ -35,7 +35,7 @@ jobs:
3535
continue-on-error: true
3636

3737
- name: 'push readme'
38-
uses: 'clouddrove/github-actions@v4.0'
38+
uses: 'clouddrove/github-actions@v6.0'
3939
continue-on-error: true
4040
with:
4141
actions_subcommand: 'push'

.github/workflows/terraform.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,60 +20,60 @@ jobs:
2020
aws-region: us-east-2
2121

2222
- name: 'Terraform Format'
23-
uses: 'clouddrove/github-actions@v4.0'
23+
uses: 'clouddrove/github-actions@v6.0'
2424
with:
2525
actions_subcommand: 'fmt'
2626

2727
- name: 'Terraform init for alb'
28-
uses: 'clouddrove/github-actions@v4.0'
28+
uses: 'clouddrove/github-actions@v6.0'
2929
with:
3030
actions_subcommand: 'init'
3131
tf_actions_working_dir: ./_example/alb
3232

3333
- name: 'Terraform validate for alb'
34-
uses: 'clouddrove/github-actions@v4.0'
34+
uses: 'clouddrove/github-actions@v6.0'
3535
with:
3636
actions_subcommand: 'validate'
3737
tf_actions_working_dir: ./_example/alb
3838

3939
- name: 'Terraform plan for alb'
40-
uses: 'clouddrove/github-actions@v4.0'
40+
uses: 'clouddrove/github-actions@v6.0'
4141
with:
4242
actions_subcommand: 'plan'
4343
tf_actions_working_dir: ./_example/alb
4444

4545
- name: 'Terraform init for clb'
46-
uses: 'clouddrove/github-actions@v4.0'
46+
uses: 'clouddrove/github-actions@v6.0'
4747
with:
4848
actions_subcommand: 'init'
4949
tf_actions_working_dir: ./_example/clb
5050

5151
- name: 'Terraform validate for clb'
52-
uses: 'clouddrove/github-actions@v4.0'
52+
uses: 'clouddrove/github-actions@v6.0'
5353
with:
5454
actions_subcommand: 'validate'
5555
tf_actions_working_dir: ./_example/clb
5656

5757
- name: 'Terraform plan for clb'
58-
uses: 'clouddrove/github-actions@v4.0'
58+
uses: 'clouddrove/github-actions@v6.0'
5959
with:
6060
actions_subcommand: 'plan'
6161
tf_actions_working_dir: ./_example/clb
6262

6363
- name: 'Terraform init for nlb'
64-
uses: 'clouddrove/github-actions@v4.0'
64+
uses: 'clouddrove/github-actions@v6.0'
6565
with:
6666
actions_subcommand: 'init'
6767
tf_actions_working_dir: ./_example/nlb
6868

6969
- name: 'Terraform validate for nlb'
70-
uses: 'clouddrove/github-actions@v4.0'
70+
uses: 'clouddrove/github-actions@v6.0'
7171
with:
7272
actions_subcommand: 'validate'
7373
tf_actions_working_dir: ./_example/nlb
7474

7575
- name: 'Terraform plan for nlb'
76-
uses: 'clouddrove/github-actions@v4.0'
76+
uses: 'clouddrove/github-actions@v6.0'
7777
with:
7878
actions_subcommand: 'plan'
7979
tf_actions_working_dir: ./_example/nlb

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
*.tfstate.backup
44
.terraform
55
.idea
6-
*.iml
6+
*.iml
7+
*.terraform.lock.hcl

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: git://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.43.0
3+
rev: v1.45.0
44
hooks:
55
- id: terraform_fmt
66

77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v3.2.0
8+
rev: v3.4.0
99
hooks:
1010
- id: check-merge-conflict
1111
- id: check-yaml

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Cloud Drove
3+
Copyright (c) 2021 Cloud Drove
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Terraform AWS ALB
88
</h1>
99

10-
<p align="center" style="font-size: 1.2rem;">
10+
<p align="center" style="font-size: 1.2rem;">
1111
This terraform module is used to create ALB on AWS.
1212
</p>
1313

@@ -38,7 +38,7 @@
3838
<hr>
3939

4040

41-
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
41+
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
4242

4343
This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.
4444

@@ -49,7 +49,7 @@ We have [*fifty plus terraform modules*][terraform_modules]. A few of them are c
4949

5050
## Prerequisites
5151

52-
This module has a few dependencies:
52+
This module has a few dependencies:
5353

5454
- [Terraform 0.13](https://learn.hashicorp.com/terraform/getting-started/install.html)
5555
- [Go](https://golang.org/doc/install)
@@ -291,7 +291,7 @@ Here are examples of how you can use this module in your inventory structure:
291291

292292

293293
## Testing
294-
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
294+
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
295295

296296
You need to run the following command in the testing folder:
297297
```hcl
@@ -300,7 +300,7 @@ You need to run the following command in the testing folder:
300300

301301

302302

303-
## Feedback
303+
## Feedback
304304
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-alb/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).
305305

306306
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-aws-alb)!

README.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ github_repo: clouddrove/terraform-aws-alb
1616
# Badges to display
1717
badges:
1818
- name: "Terraform"
19-
image: "https://img.shields.io/badge/Terraform-v0.13-green"
19+
image: "https://img.shields.io/badge/Terraform-v0.14-green"
2020
url: "https://www.terraform.io"
2121
- name: "Licence"
2222
image: "https://img.shields.io/badge/License-MIT-blue.svg"
@@ -37,11 +37,8 @@ usage : |-
3737
```hcl
3838
module "alb" {
3939
source = "clouddrove/alb/aws"
40-
version = "0.13.0"
40+
version = "0.14.0"
4141
name = "alb"
42-
application = "clouddrove"
43-
environment = "test"
44-
label_order = ["environment", "application", "name"]
4542
internal = false
4643
load_balancer_type = "application"
4744
instance_count = module.ec2.instance_count
@@ -82,11 +79,8 @@ usage : |-
8279
```hcl
8380
module "alb" {
8481
source = "clouddrove/alb/aws"
85-
version = "0.13.0"
82+
version = "0.14.0"
8683
name = "nlb"
87-
application = "clouddrove"
88-
environment = "test"
89-
label_order = ["environment", "application", "name"]
9084
internal = false
9185
load_balancer_type = "application"
9286
instance_count = module.ec2.instance_count
@@ -129,12 +123,9 @@ usage : |-
129123
### CLB Example
130124
```hcl
131125
module "clb" {
132-
source = "clouddrove/alb/aws"
133-
version = "0.13.0"
134-
name = "clb"
135-
application = "clouddrove"
136-
environment = "test"
137-
label_order = ["environment", "application", "name"]
126+
source = "clouddrove/alb/aws"
127+
version = "0.14.0"
128+
name = "clb"
138129
139130
load_balancer_type = "classic"
140131
internal = false

_example/alb/example.tf

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,26 @@ provider "aws" {
33
}
44

55
module "vpc" {
6-
source = "clouddrove/vpc/aws"
7-
version = "0.13.0"
6+
source = "clouddrove/vpc/aws"
7+
version = "0.14.0"
8+
89
name = "vpc"
9-
application = "clouddrove"
10+
repository = "https://github.com/clouddrove/terraform-aws-vpc"
1011
environment = "test"
11-
label_order = ["environment", "application", "name"]
12+
label_order = ["name", "environment"]
1213

1314
cidr_block = "172.16.0.0/16"
1415
}
1516

1617
module "public_subnets" {
17-
source = "clouddrove/subnet/aws"
18-
version = "0.13.0"
18+
source = "clouddrove/subnet/aws"
19+
version = "0.14.0"
20+
1921
name = "public-subnet"
20-
application = "clouddrove"
22+
repository = "https://github.com/clouddrove/terraform-aws-subnet"
2123
environment = "test"
22-
label_order = ["environment", "application", "name"]
24+
label_order = ["name", "environment"]
25+
2326

2427
availability_zones = ["eu-west-1b", "eu-west-1c"]
2528
vpc_id = module.vpc.vpc_id
@@ -30,38 +33,44 @@ module "public_subnets" {
3033
}
3134

3235
module "http_https" {
33-
source = "clouddrove/security-group/aws"
34-
version = "0.13.0"
36+
source = "clouddrove/security-group/aws"
37+
version = "0.14.0"
38+
3539
name = "http-https"
36-
application = "clouddrove"
40+
repository = "https://github.com/clouddrove/terraform-aws-security-group"
3741
environment = "test"
38-
label_order = ["environment", "application", "name"]
42+
label_order = ["name", "environment"]
43+
3944

4045
vpc_id = module.vpc.vpc_id
4146
allowed_ip = ["0.0.0.0/0"]
4247
allowed_ports = [80, 443]
4348
}
4449

4550
module "ssh" {
46-
source = "clouddrove/security-group/aws"
47-
version = "0.13.0"
51+
source = "clouddrove/security-group/aws"
52+
version = "0.14.0"
53+
4854
name = "ssh"
49-
application = "clouddrove"
55+
repository = "https://github.com/clouddrove/terraform-aws-security-group"
5056
environment = "test"
51-
label_order = ["environment", "application", "name"]
57+
label_order = ["name", "environment"]
58+
5259

5360
vpc_id = module.vpc.vpc_id
5461
allowed_ip = [module.vpc.vpc_cidr_block]
5562
allowed_ports = [22]
5663
}
5764

5865
module "iam-role" {
59-
source = "clouddrove/iam-role/aws"
60-
version = "0.13.0"
61-
name = "iam-role"
62-
application = "clouddrove"
63-
environment = "test"
64-
label_order = ["environment", "application", "name"]
66+
source = "clouddrove/iam-role/aws"
67+
version = "0.14.0"
68+
69+
name = "iam-role"
70+
repository = "https://github.com/clouddrove/terraform-aws-iam-role"
71+
environment = "test"
72+
label_order = ["name", "environment"]
73+
6574
assume_role_policy = data.aws_iam_policy_document.default.json
6675

6776
policy_enabled = true
@@ -93,12 +102,13 @@ data "aws_iam_policy_document" "iam-policy" {
93102
}
94103

95104
module "ec2" {
96-
source = "clouddrove/ec2/aws"
97-
version = "0.13.0"
105+
source = "clouddrove/ec2/aws"
106+
version = "0.14.0"
107+
98108
name = "ec2-instance"
99-
application = "clouddrove"
109+
repository = "https://github.com/clouddrove/terraform-aws-ec2"
100110
environment = "test"
101-
label_order = ["environment", "application", "name"]
111+
label_order = ["name", "environment"]
102112

103113
instance_count = 2
104114
ami = "ami-08d658f84a6d84a80"
@@ -126,11 +136,7 @@ module "ec2" {
126136
module "alb" {
127137
source = "./../../"
128138

129-
name = "alb"
130-
application = "clouddrove"
131-
environment = "test"
132-
label_order = ["environment", "application", "name"]
133-
139+
name = "alb"
134140
enable = true
135141
internal = false
136142
load_balancer_type = "application"

0 commit comments

Comments
 (0)