Skip to content

Commit 8b4a549

Browse files
mamrajyadav13architcloudlovely
authored
Feat/issue 276 a (#23)
* feat: Update module * feat: Added cloudwatch log group * fix: fixed kms alias name * fix: fixed cloudwatch kms alias name * fix: update depends_on in lambda resource * fix: replaced blank strings with null value * fix: KMS Key alias and resource condition * fix: Cloudwatch Log group name and added output for same. * fix: Log group name output * fix: Log group name output * fix: Examples. * fix: update github action and tf code * fix: fix Code scanning/defsec * fix: fix static check issue * fix: update tf and aws latest version --------- Co-authored-by: Archit Chopra <chopra13archit@gmail.com> Co-authored-by: lovely <lovely.kumari@clouddrove.com>
1 parent b0c5dd1 commit 8b4a549

32 files changed

+668
-1107
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# These owners will be the default owners for everything in the repo.
2+
* @anmolnagpal @clouddrove/approvers @clouddrove-ci

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## what
2+
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
3+
* Use bullet points to be concise and to the point.
4+
5+
## why
6+
* Provide the justifications for the changes (e.g. business case).
7+
* Describe why these changes were made (e.g. why do these commits fix the problem?)
8+
* Use bullet points to be concise and to the point.
9+
10+
## references
11+
* Link to any supporting jira issues or helpful documentation to add some context (e.g. stackoverflow).
12+
* Use `closes #123`, if this PR closes a Jira issue `#123`

.github/dependabot.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,20 @@
22
# package ecosystems to update and where the package manifests are located.
33
# Please see the documentation for all configuration options:
44
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
56
version: 2
67
updates:
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"
13+
open-pull-requests-limit: 3
14+
assignees:
15+
- "clouddrove-ci"
16+
reviewers:
17+
- "approvers"
18+
719
- package-ecosystem: "terraform" # See documentation for possible values
820
directory: "/" # Location of package manifests
921
schedule:
@@ -14,8 +26,11 @@ updates:
1426
# Add reviewer
1527
reviewers:
1628
- "approvers"
29+
# Allow up to 3 open pull requests for pip dependencies
30+
open-pull-requests-limit: 3
31+
1732
- package-ecosystem: "terraform" # See documentation for possible values
18-
directory: "_example/basic-function" # Location of package manifests
33+
directory: "/_example/basic-function" # Location of package manifests
1934
schedule:
2035
interval: "weekly"
2136
# Add assignees
@@ -24,8 +39,11 @@ updates:
2439
# Add reviewer
2540
reviewers:
2641
- "approvers"
42+
# Allow up to 3 open pull requests for pip dependencies
43+
open-pull-requests-limit: 3
44+
2745
- package-ecosystem: "terraform" # See documentation for possible values
28-
directory: "_example/basic-s3-function" # Location of package manifests
46+
directory: "/_example/basic-s3-function" # Location of package manifests
2947
schedule:
3048
interval: "weekly"
3149
# Add assignees
@@ -34,13 +52,18 @@ updates:
3452
# Add reviewer
3553
reviewers:
3654
- "approvers"
55+
# Allow up to 3 open pull requests for pip dependencies
56+
open-pull-requests-limit: 3
57+
3758
- package-ecosystem: "terraform" # See documentation for possible values
38-
directory: "_example/complete-function" # Location of package manifests
59+
directory: "/_example/complete-function" # Location of package manifests
3960
schedule:
4061
interval: "weekly"
4162
# Add assignees
4263
assignees:
4364
- "clouddrove-ci"
4465
# Add reviewer
4566
reviewers:
46-
- "approvers"
67+
- "approvers"
68+
# Allow up to 3 open pull requests for pip dependencies
69+
open-pull-requests-limit: 3
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Auto Assign PRs
2+
on:
3+
pull_request:
4+
types: [opened, reopened]
5+
workflow_dispatch:
6+
jobs:
7+
assignee:
8+
uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@1.0.6
9+
secrets:
10+
GITHUB: ${{ secrets.GITHUB }}
11+
with:
12+
assignees: 'clouddrove-ci'

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
jobs:
99
changelog:
10-
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
10+
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@1.0.6
1111
secrets: inherit
1212
with:
13-
branch: 'master'
13+
branch: 'master'

.github/workflows/readme.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,42 @@ on:
33
push:
44
branches:
55
- master
6-
76
jobs:
8-
readme-create:
7+
readme:
98
name: 'readme-create'
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: 'Checkout'
13-
uses: actions/checkout@v2.3.4
12+
uses: actions/checkout@master
1413

15-
- name: Set up Python 3.7.
16-
uses: actions/setup-python@v2
14+
- name: 'Set up Python 3.7'
15+
uses: actions/setup-python@v4
1716
with:
1817
python-version: '3.x'
1918

2019
- name: 'create readme'
21-
uses: 'clouddrove/github-actions@v9.0.2'
20+
uses: 'clouddrove/github-actions@9.0.3'
2221
with:
2322
actions_subcommand: 'readme'
24-
github_token: '${{ secrets.GITHUB}}'
23+
github_token: '${{ secrets.GITHUB }}'
2524
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
27-
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2826

29-
- name: pre-commit check errors
30-
uses: pre-commit/action@v2.0.0
27+
- name: 'pre-commit check errors'
28+
uses: pre-commit/action@v3.0.0
3129
continue-on-error: true
3230

33-
- name: pre-commit fix erros
34-
uses: pre-commit/action@v2.0.0
31+
- name: 'pre-commit fix erros'
32+
uses: pre-commit/action@v3.0.0
3533
continue-on-error: true
3634

3735
- name: 'push readme'
38-
uses: 'clouddrove/github-actions@v9.0.2'
36+
uses: 'clouddrove/github-actions@9.0.3'
3937
continue-on-error: true
4038
with:
4139
actions_subcommand: 'push'
4240
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4442

4543
- name: 'Slack Notification'
4644
uses: clouddrove/action-slack@v2
@@ -51,4 +49,4 @@ jobs:
5149
env:
5250
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
5351
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
54-
if: always()
52+
if: always()

.github/workflows/terraform.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.

.github/workflows/terratest.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/tf-checks.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: tf-checks
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
basic-function-example:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.0.6
10+
with:
11+
working_directory: './_example/basic-function/'
12+
13+
basic-s3-function-example:
14+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.0.6
15+
with:
16+
working_directory: './_example/basic-s3-function/'
17+
18+
complete-function-example:
19+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.0.6
20+
with:
21+
working_directory: './_example/complete-function/'

.github/workflows/tflint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tf-lint
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-lint:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@1.0.6
10+
secrets:
11+
GITHUB: ${{ secrets.GITHUB }}

0 commit comments

Comments
 (0)