Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/version #36

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
fd749a6
fix: update version and added version.tf in /examples/complete
vaibhavcloud Sep 13, 2024
2a443fe
fix: update dependbot.yaml and tf-check.yaml
vaibhavcloud Sep 13, 2024
e19aa99
fix: removed error of automerged.yaml
vaibhavcloud Sep 13, 2024
a84ebf6
FIx: update automerge file and fix the error of work flow
vaibhavcloud Sep 16, 2024
c8b21ad
fix: fix foremet error and update vnet module version
vaibhavcloud Sep 16, 2024
3067295
fix: added verson.tf in all folder of exmples and update module versi…
vaibhavcloud Sep 16, 2024
11e3950
fix: main.tf and added variables for requred value of log-analitics
vaibhavcloud Sep 16, 2024
b3d29a5
fix: fix main.tf error and removed duplicate variables
vaibhavcloud Sep 16, 2024
92cb019
fix: changed address_space to address_spaces in all example.tf
vaibhavcloud Sep 16, 2024
7eb653d
fix: changed value of address_spaces as list
vaibhavcloud Sep 16, 2024
f990d9b
fix: all errors of example.tf in every dir
vaibhavcloud Sep 16, 2024
0eaf96a
fix: subscription id replaced by remdom id
vaibhavcloud Sep 16, 2024
34a53f1
fix: removed deprecations and tflint warnings
vaibhavcloud Sep 17, 2024
25e9f58
fix: tflint errors
vaibhavcloud Sep 17, 2024
5e68bcd
fix: fixed formet errors
vaibhavcloud Sep 17, 2024
49e17fb
fix: update variable.tf to remove tflint errors
vaibhavcloud Sep 17, 2024
771dc27
fix: update variable.tf to remove tflint errors
vaibhavcloud Sep 17, 2024
3fb573d
fix: update variable.tf to remove tflint errors
vaibhavcloud Sep 17, 2024
4075c75
fix: update variable.tf to remove tflint errors
vaibhavcloud Sep 17, 2024
479d758
fix: update variable to remove tflint errors
vaibhavcloud Sep 17, 2024
9671951
fix: update output.tf to remove tflint errors
vaibhavcloud Sep 17, 2024
bc75b7a
fix: update output.tf, main.tf, variable.tf according tflints
vaibhavcloud Sep 17, 2024
5298cc2
fix : tflint error for output.tf anf variable.tf
vaibhavcloud Sep 17, 2024
091761b
fix : tflint error for output.tf anf variable.tf
vaibhavcloud Sep 17, 2024
3094648
fix: remove terraform undiclaired blocks in variable.tf
vaibhavcloud Sep 17, 2024
43a4d78
fix: null value from main.tf and removed lookup function
vaibhavcloud Sep 18, 2024
661b3a2
fix: fmt error
vaibhavcloud Sep 18, 2024
1ec356d
Fix: removed unnecessary commented line
vaibhavcloud Sep 25, 2024
421bbd9
Fix: fmt error
vaibhavcloud Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ updates:
open-pull-requests-limit: 3

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/_example/basic" # Location of package manifests
directory: "/examples/basic" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
Expand All @@ -43,7 +43,7 @@ updates:
open-pull-requests-limit: 3

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/_example/complete" # Location of package manifests
directory: "/examples/complete" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
Expand All @@ -56,7 +56,7 @@ updates:
open-pull-requests-limit: 3

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/_example/firewall-with-isolated-rules" # Location of package manifests
directory: "/examples/firewall-with-isolated-rules" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
Expand All @@ -69,7 +69,7 @@ updates:
open-pull-requests-limit: 3

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/_example/firewall-with-public-ip-prefix" # Location of package manifests
directory: "/examples/firewall-with-public-ip-prefix" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
Expand Down
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/auto_assignee.yml@master
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
assignees: 'clouddrove-ci'
11 changes: 11 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Auto merge
on:
pull_request:
jobs:
auto-merge:
uses: clouddrove/github-shared-workflows/.github/workflows/auto_merge.yml@master
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
tfcheck: 'example-complete / Check code format'
59 changes: 10 additions & 49 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,15 @@
name: 'Create README.md file'
name: Readme Workflow
on:
push:
branches:
- master

paths-ignore:
- 'README.md'
- 'docs/**'
workflow_dispatch:
jobs:
readme-create:
name: 'readme-create'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master

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

- name: 'create readme'
uses: 'clouddrove/[email protected]'
with:
actions_subcommand: 'readme'
github_token: '${{ secrets.GITHUB }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: 'pre-commit check errors'
uses: pre-commit/[email protected]
continue-on-error: true

- name: 'pre-commit fix erros'
uses: pre-commit/[email protected]
continue-on-error: true

- name: 'push readme'
uses: 'clouddrove/[email protected]'
continue-on-error: true
with:
actions_subcommand: 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
README:
uses: clouddrove/github-shared-workflows/.github/workflows/readme.yml@master
secrets:
TOKEN : ${{ secrets.GITHUB }}
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}
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.

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


example-complete:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
with:
working_directory: './examples/complete/'

example-firewall-with-isolated-rules:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
with:
working_directory: './examples/firewall-with-isolated-rules/'

example-firewall-with-public-ip-prefix:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
with:
working_directory: './examples/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/tf-lint.yml@master
secrets:
GITHUB: ${{ secrets.GITHUB }}
27 changes: 11 additions & 16 deletions _example/basic/example.tf → examples/basic/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,49 +85,44 @@ module "firewall" {
{
name = "http"
protocols = ["TCP"]
source_addresses = ["*"] // ["X.X.X.X"]
destination_ports = ["80"]
source_addresses = ["*"]
destination_ports = ["80"]
translated_port = "80"
translated_address = "10.1.1.1" #provide private ip address to translate
destination_address = module.firewall.public_ip_address[1] //Public ip associated with firewall. Here index 1 indicates 'vnet ip' (from public_ip_names = ["ingress" , "vnet"])

translated_address = "10.1.1.1"
destination_address = module.firewall.public_ip_address[1]
},
{
name = "https"
protocols = ["TCP"]
destination_ports = ["443"]
source_addresses = ["*"]
translated_port = "443"
translated_address = "10.1.1.1" #provide private ip address to translate
destination_address = module.firewall.public_ip_address[1] //Public ip associated with firewall

translated_address = "10.1.1.1"
destination_address = module.firewall.public_ip_address[1]
}
]
},

{
name = "example-nat-policy-2"
priority = "100"
rules = [
{
name = "http"
protocols = ["TCP"]
source_addresses = ["*"] // ["X.X.X.X"]
source_addresses = ["*"]
destination_ports = ["80"]
translated_port = "80"
translated_address = "10.1.1.2" #provide private ip address to translate
destination_address = module.firewall.public_ip_address[0] //Public ip associated with firewall.Here index 0 indicates 'ingress ip' (from public_ip_names = ["ingress" , "vnet"])

translated_address = "10.1.1.2"
destination_address = module.firewall.public_ip_address[0]
},
{
name = "https"
protocols = ["TCP"]
source_addresses = ["*"] // ["X.X.X.X"]
source_addresses = ["*"]
destination_ports = ["443"]
translated_port = "443"
translated_address = "10.1.1.2" #provide private ip address to translate
destination_address = module.firewall.public_ip_address[0] //Public ip associated with firewall
translated_address = "10.1.1.2"
destination_address = module.firewall.public_ip_address[0]
}
]
}
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions examples/basic/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
terraform {
required_version = ">= 1.6.6"
}

terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.112.0"
}
}
}
Loading