Skip to content

Commit

Permalink
feat: added attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pranaydeokar committed Jan 12, 2024
1 parent 47cf408 commit 026cda9
Show file tree
Hide file tree
Showing 20 changed files with 434 additions and 164 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/auto_assignee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Auto Assign PRs

on:
pull_request:
types: [opened, reopened]

workflow_dispatch:
jobs:
assignee:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
assignees: 'clouddrove-ci'
12 changes: 12 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Auto merge
on:
pull_request:
jobs:
auto-merge:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
tfcheck: 'basic-example / Check code format'
...
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:
jobs:
changelog:
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@1.0.10
secrets: inherit
with:
branch: 'master'
branch: 'master'
5 changes: 2 additions & 3 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@master

- name: 'Set up Python 3.7'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -25,7 +25,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: 'pre-commit check errors'
uses: pre-commit/[email protected]
continue-on-error: true
Expand All @@ -51,4 +50,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
if: always()
30 changes: 0 additions & 30 deletions .github/workflows/semantic-releaser.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .github/workflows/static-checks.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: tf-checks
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
basic-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/basic/'

complete-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/complete/'

firewall-with-isolated-rules:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/firewall-with-isolated-rules/'

firewall-with-public-ip-prefix:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/firewall-with-public-ip-prefix/'
11 changes: 11 additions & 0 deletions .github/workflows/tflint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: tf-lint
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
tf-lint:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
GITHUB: ${{ secrets.GITHUB }}
4 changes: 2 additions & 2 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:
jobs:
tfsec:
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@1.0.10
secrets: inherit
with:
working_directory: '.'
working_directory: '.'
13 changes: 13 additions & 0 deletions _example/basic/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"
}

terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.85.0"
}
}
}
10 changes: 5 additions & 5 deletions _example/complete/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ module "resource_group" {
module "vnet" {
depends_on = [module.resource_group]
source = "clouddrove/vnet/azure"
version = "1.0.3"
version = "1.0.4"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
address_space = "10.0.0.0/16"
address_spaces = ["10.0.0.0/16"]
}

##-----------------------------------------------------------------------------
Expand All @@ -42,15 +42,15 @@ module "vnet" {
module "name_specific_subnet" {
depends_on = [module.vnet]
source = "clouddrove/subnet/azure"
version = "1.0.2"
version = "1.1.0"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
virtual_network_name = join("", module.vnet.vnet_name)
virtual_network_name = module.vnet.vnet_name
#subnet
specific_name_subnet = true
specific_subnet_names = "AzureFirewallSubnet"
specific_subnet_names = ["AzureFirewallSubnet"]
subnet_prefixes = ["10.0.1.0/24"]
# route_table
routes = [
Expand Down
13 changes: 13 additions & 0 deletions _example/complete/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"
}

terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.85.0"
}
}
}
4 changes: 2 additions & 2 deletions _example/firewall-with-isolated-rules/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "resource_group" {
module "vnet" {
depends_on = [module.resource_group]
source = "clouddrove/vnet/azure"
version = "1.0.3"
version = "1.0.4"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
Expand All @@ -42,7 +42,7 @@ module "vnet" {
module "name_specific_subnet" {
depends_on = [module.vnet]
source = "clouddrove/subnet/azure"
version = "1.0.2"
version = "1.1.0"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
Expand Down
13 changes: 13 additions & 0 deletions _example/firewall-with-isolated-rules/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"
}

terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.85.0"
}
}
}
4 changes: 2 additions & 2 deletions _example/firewall-with-public-ip-prefix/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "resource_group" {
module "vnet" {
depends_on = [module.resource_group]
source = "clouddrove/vnet/azure"
version = "1.0.3"
version = "1.0.4"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
Expand All @@ -42,7 +42,7 @@ module "vnet" {
module "name_specific_subnet" {
depends_on = [module.vnet]
source = "clouddrove/subnet/azure"
version = "1.0.2"
version = "1.1.0"
name = local.name
environment = local.environment
resource_group_name = module.resource_group.resource_group_name
Expand Down
13 changes: 13 additions & 0 deletions _example/firewall-with-public-ip-prefix/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"
}

terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.85.0"
}
}
}
4 changes: 4 additions & 0 deletions deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version = 1

[[analyzers]]
name = "terraform"
Loading

0 comments on commit 026cda9

Please sign in to comment.