Skip to content

Commit 83a6bdf

Browse files
author
Om Sharma
authored
Merge pull request #10 from clouddrove/0.15
update github-action,module tags and update in 0.15
2 parents 22169a1 + 065472e commit 83a6bdf

File tree

9 files changed

+57
-26
lines changed

9 files changed

+57
-26
lines changed

.github/workflows/readme.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: 'Checkout'
13-
uses: actions/checkout@master
13+
uses: actions/checkout@v2.3.4
1414

15-
- name: Set up Python 3.7.
15+
- name: 'Set up Python 3.7'
1616
uses: actions/setup-python@v2
1717
with:
1818
python-version: '3.x'
1919

2020
- name: 'create readme'
21-
uses: 'clouddrove/github-actions@v6.0'
21+
uses: 'clouddrove/github-actions@v8.0'
2222
with:
2323
actions_subcommand: 'readme'
2424
github_token: '${{ secrets.GITHUB}}'
@@ -30,12 +30,12 @@ jobs:
3030
uses: pre-commit/[email protected]
3131
continue-on-error: true
3232

33-
- name: 'pre-commit fix erros'
33+
- name: 'pre-commit fix errors'
3434
uses: pre-commit/[email protected]
3535
continue-on-error: true
3636

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

.github/workflows/terraform.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/[email protected]
1414

1515
- name: 'Terraform Format'
16-
uses: 'clouddrove/github-actions@v6.0'
16+
uses: 'clouddrove/github-actions@v8.0'
1717
with:
1818
actions_subcommand: 'fmt'
1919

@@ -32,13 +32,13 @@ jobs:
3232
aws-region: us-east-2
3333

3434
- name: 'Terraform init'
35-
uses: 'clouddrove/github-actions@v6.0'
35+
uses: 'clouddrove/github-actions@v8.0'
3636
with:
3737
actions_subcommand: 'init'
3838
tf_actions_working_dir: ./_example
3939

4040
- name: 'Terraform validate'
41-
uses: 'clouddrove/github-actions@v6.0'
41+
uses: 'clouddrove/github-actions@v8.0'
4242
with:
4343
actions_subcommand: 'validate'
4444
tf_actions_working_dir: ./_example
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/[email protected]
5252

5353
- name: 'Terraform init'
54-
uses: 'clouddrove/github-actions@v6.0'
54+
uses: 'clouddrove/github-actions@v8.0'
5555
with:
5656
actions_subcommand: 'init'
5757
tf_actions_working_dir: ./_example
@@ -64,7 +64,37 @@ jobs:
6464
aws-region: us-east-2
6565

6666
- name: 'Terraform plan'
67-
uses: 'clouddrove/github-actions@v6.0'
67+
uses: 'clouddrove/github-actions@v8.0'
6868
with:
6969
actions_subcommand: 'plan'
7070
tf_actions_working_dir: ./_example
71+
72+
pre-commit:
73+
name: 'Pre-Commit'
74+
needs:
75+
- fmt
76+
- plan
77+
- validate
78+
runs-on: ubuntu-latest
79+
steps:
80+
- name: 'Checkout'
81+
uses: actions/[email protected]
82+
83+
- name: 'Install Tflint'
84+
run: |
85+
curl https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
86+
87+
- name: 'Pre-Commit 🔎'
88+
uses: pre-commit/[email protected]
89+
continue-on-error: true
90+
91+
- name: 'Slack Notification'
92+
uses: clouddrove/action-slack@v2
93+
with:
94+
status: ${{ job.status }}
95+
fields: repo,author
96+
author_name: 'CloudDrove'
97+
env:
98+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
99+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
100+
if: always()

.github/workflows/terratest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
aws-region: us-east-2
2323

2424
- name: 'Terratest'
25-
uses: 'clouddrove/github-actions@v6.0'
25+
uses: 'clouddrove/github-actions@v8.0'
2626
with:
2727
actions_subcommand: 'terratest'
2828
if: ${{ github.event.label.name == 'terratest' }}

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ repos:
55
hooks:
66
- id: terraform-fmt
77
- id: shellcheck
8+
- id: tflint
89

910
- repo: git://github.com/pre-commit/pre-commit-hooks
10-
rev: v3.4.0 # Use the ref you want to point at
11+
rev: v4.0.1 # Use the ref you want to point at
1112
hooks:
1213
- id: end-of-file-fixer
1314
- id: trailing-whitespace

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Terraform AWS SFTP
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 sftp on AWS for S3.
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)
@@ -124,7 +124,7 @@ Here is an example of how you can use this module in your inventory structure:
124124

125125

126126
## Testing
127-
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.
127+
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.
128128

129129
You need to run the following command in the testing folder:
130130
```hcl
@@ -133,7 +133,7 @@ You need to run the following command in the testing folder:
133133

134134

135135

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

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

README.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ github_repo: clouddrove/terraform-aws-sftp
1616
# Badges to display
1717
badges:
1818
- name: "Terraform"
19-
image: "https://img.shields.io/badge/Terraform-v0.14-green"
19+
image: "https://img.shields.io/badge/Terraform-v0.15-green"
2020
url: "https://www.terraform.io"
2121
- name: "Licence"
2222
image: "https://img.shields.io/badge/License-MIT-blue.svg"
@@ -37,7 +37,7 @@ usage : |-
3737
```hcl
3838
module "sftp" {
3939
source = "clouddrove/sftp/aws"
40-
version = "0.14.0"
40+
version = "0.15.0"
4141
name = "sftp"
4242
environment = "test"
4343
label_order = ["name", "environment"]

_example/example.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ provider "aws" {
44

55
module "s3_bucket" {
66
source = "clouddrove/s3/aws"
7-
version = "0.14.0"
7+
version = "0.15.0"
88

99
name = "clouddrove-sftp-bucket"
1010
environment = "test"
1111
label_order = ["name", "environment"]
1212

13-
versioning = true
14-
acl = "private"
15-
bucket_enabled = true
16-
force_destroy = true
13+
versioning = true
14+
acl = "private"
15+
force_destroy = true
1716
}
1817

1918
module "sftp" {

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
# for resources. You can use terraform-labels to implement a strict naming
88
# convention.
99
module "labels" {
10-
source = "git::https://github.com/clouddrove/terraform-labels.git?ref=tags/0.14.0"
10+
source = "clouddrove/labels/aws"
11+
version = "0.15.0"
1112

1213
name = var.name
1314
repository = var.repository

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ variable "name" {
88

99
variable "repository" {
1010
type = string
11-
default = "https://registry.terraform.io/modules/clouddrove/sftp/aws"
11+
default = "https://github.com/clouddrove/terraform-aws-sftp"
1212
description = "Terraform current module repo"
1313
}
1414

0 commit comments

Comments
 (0)