diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 57bdcfa..231c9a6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # These owners will be the default owners for everything in the repo. -* @anmolnagpal @clouddrove/approvers @clouddrove-ci +* @anmolnagpal @clouddrove/approvers @clouddrove-ci diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 71b4b80..08ea960 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,8 +2,10 @@ # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + version: 2 updates: + - package-ecosystem: "github-actions" directory: "/" schedule: @@ -14,6 +16,19 @@ updates: reviewers: - "approvers" + - package-ecosystem: "terraform" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + # Add assignees + assignees: + - "clouddrove-ci" + # Add reviewer + reviewers: + - "approvers" + # Allow up to 3 open pull requests for pip dependencies + open-pull-requests-limit: 3 + - package-ecosystem: "terraform" # See documentation for possible values directory: "/_example/basic" # Location of package manifests schedule: diff --git a/.github/workflows/auto_assignee.yml b/.github/workflows/auto_assignee.yml index a07d2fa..f8b8bcd 100644 --- a/.github/workflows/auto_assignee.yml +++ b/.github/workflows/auto_assignee.yml @@ -1,7 +1,9 @@ name: Auto Assign PRs + on: pull_request: types: [opened, reopened] + workflow_dispatch: jobs: assignee: diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index fedd76b..620e712 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -3,8 +3,9 @@ on: push: branches: - master + jobs: - readme-create: + readme: name: 'readme-create' runs-on: ubuntu-latest steps: @@ -20,9 +21,9 @@ jobs: uses: 'clouddrove/github-actions@v9.0.2' with: actions_subcommand: 'readme' - github_token: '${{ secrets.GITHUB}}' + github_token: '${{ secrets.GITHUB }}' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: 'pre-commit check errors' uses: pre-commit/action@v3.0.0 @@ -38,7 +39,7 @@ jobs: with: actions_subcommand: 'push' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: 'Slack Notification' uses: clouddrove/action-slack@v2 diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index 7fa9af2..5b8aa91 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -5,7 +5,7 @@ on: pull_request: workflow_dispatch: jobs: - tf-lint: - uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master + tflint: + uses: clouddrove/test-tfsec/.github/workflows/tflint.yaml@master secrets: - GITHUB: ${{ secrets.GITHUB}} + GITHUB: ${{ secrets.GITHUB }} diff --git a/README.yaml b/README.yaml index ff4c741..4227618 100644 --- a/README.yaml +++ b/README.yaml @@ -19,7 +19,7 @@ badges: url: "https://github.com/clouddrove/terraform-aws-vpc/releases/latest" - name: "tfsec" image: "https://github.com/clouddrove/terraform-aws-vpc/actions/workflows/tfsec.yml/badge.svg" - url: "https://github.com/clouddrove/terraform-aws-vpc/actions/workflows/tfsec.yml/badge.svg" + url: "https://github.com/clouddrove/terraform-aws-vpc/actions/workflows/tfsec.yml" - name: "Licence" image: "https://img.shields.io/badge/License-APACHE-blue.svg" url: "LICENSE.md" @@ -35,17 +35,36 @@ include: # How to use this project usage: |- Here are some examples of how you can use this module in your inventory structure: - ```hcl + + ### vpc basic example + ```hcl module "vpc" { source = "clouddrove/vpc/aws" version = "1.3.1" name = "vpc" environment = "example" cidr_block = "10.0.0.0/16" - enable_flow_log = true + enable_flow_log = true # Flow logs will be stored in cloudwatch log group. Variables passed in default. create_flow_log_cloudwatch_iam_role = true additional_cidr_block = ["172.3.0.0/16", "172.2.0.0/16"] dhcp_options_domain_name = "service.consul" dhcp_options_domain_name_servers = ["127.0.0.1", "10.10.0.2"] - } - ``` + } + ``` + + ### vpc complete example + ```hcl + module "vpc" { + source = "clouddrove/vpc/aws" + version = "1.3.1" + name = "vpc" + environment = "example" + cidr_block = "10.0.0.0/16" + enable_flow_log = true + flow_log_destination_type = "s3" + flow_logs_bucket_name = "gc-vpc-flow-logs-bucket" + additional_cidr_block = ["172.3.0.0/16", "172.2.0.0/16"] + dhcp_options_domain_name = "service.consul" + dhcp_options_domain_name_servers = ["127.0.0.1", "10.10.0.2"] + } + ```