Skip to content

Commit 322aa03

Browse files
Merge pull request #1 from sourcefuse/feature/dynamodb_module
Update re-usable dynamodb module
2 parents c702d95 + 7e9b3cf commit 322aa03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3174
-222
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Description
2+
3+
Please provide a brief description of the changes introduced by this pull request.
4+
5+
## Related Issue
6+
7+
- [Issue Number](link-to-issue): Brief description
8+
9+
## Checklist
10+
11+
Please ensure that the following steps are completed before submitting the pull request:
12+
13+
- [ ] Code follows the Terraform best practices and style guidelines.
14+
- [ ] Changes are appropriately documented, including any necessary updates to README or other documentation files.
15+
- [ ] Unit tests have been added or updated to cover the changes introduced by this pull request.
16+
- [ ] Changes have been tested locally and verified to work as expected.
17+
- [ ] The code has been reviewed to ensure it aligns with the project's goals and standards.
18+
- [ ] Dependencies and backward compatibility have been considered and addressed if applicable.
19+
20+
## Type of change
21+
22+
Please delete options that are not relevant.
23+
24+
- [ ] Bug fix (non-breaking change which fixes an issue)
25+
- [ ] New feature (non-breaking change which adds functionality)
26+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
27+
- [ ] Intermediate change (work in progress)
28+
29+
## Testing Instructions
30+
31+
Provide detailed steps or instructions for testing the changes introduced by this pull request.
32+
33+
## Screenshots
34+
35+
Include any relevant screenshots or visual aids to help reviewers understand the changes visually, if applicable.
36+
37+
## Additional Notes
38+
39+
Add any additional notes or context that might be helpful for reviewers or users testing the changes.

.github/workflows/snyk.yaml

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

.github/workflows/tag-release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bump version
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Bump version and push tag
13+
id: tag
14+
uses: anothrNick/github-tag-action@master
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
DEFAULT_BUMP: patch
18+
REPO_OWNER: sourcefuse
19+
- name: Create Release
20+
id: create_release
21+
uses: actions/create-release@v1.1.4
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
tag_name: ${{ steps.tag.outputs.tag }}
26+
release_name: v${{ steps.tag.outputs.tag }}
27+
body: ${{ github.release_notes }}
28+
draft: false
29+
prerelease: false

.github/workflows/tag.yml

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

.github/workflows/test.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy
1313
jobs:
1414
tflint:
1515
runs-on:
16-
- arc
16+
- ubuntu-latest
1717
name: tflint
1818
steps:
1919
- uses: actions/checkout@master
@@ -30,28 +30,3 @@ jobs:
3030

3131
- name: Run tflint
3232
run: tflint -f compact
33-
34-
checkov:
35-
runs-on:
36-
- arc
37-
name: checkov
38-
steps:
39-
- uses: actions/checkout@master
40-
41-
- name: Run Checkov action
42-
id: checkov
43-
uses: bridgecrewio/checkov-action@master
44-
with:
45-
directory: .
46-
# yamllint disable-line rule:truthy # optional: display only failed checks
47-
quiet: true
48-
# optional: do not return an error code if there are failed checks.
49-
soft_fail: true
50-
# optional: run only on a specific infrastructure {cloudformation,terraform,kubernetes,all}
51-
framework: terraform
52-
# optional: the output format, one of: cli, json, junitxml, github_failed_only
53-
output_format: github_failed_only
54-
download_external_modules: false
55-
log_level: WARNING
56-
# optional: Define what UID and / or what GID to run the container under to prevent permission issues
57-
container_user: 1000

.github/workflows/update-docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Update-docs
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
transfer-file:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Pushes Readme file
14+
uses: dmnemec/copy_file_to_another_repo_action@main
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }}
18+
with:
19+
source_file: 'README.md'
20+
destination_repo: 'sourcefuse/arc-docs'
21+
destination_folder: 'docs/arc-iac-docs/modules/terraform-aws-arc-dynamodb'
22+
user_email: 'github-actions@github.com'
23+
user_name: ${{ github.actor }}
24+
commit_message: ${{ github.event.head_commit.message }}
25+
- name: Pushes to another repository
26+
uses: cpina/github-action-push-to-another-repository@main
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }}
30+
with:
31+
source-directory: 'static'
32+
destination-github-username: 'sourcefuse'
33+
destination-repository-name: 'arc-docs'
34+
target-directory: 'docs/arc-iac-docs/modules/terraform-aws-arc-db/static'
35+
user-email: 'github-actions@github.com'
36+
user-name: ${{ github.actor }}
37+
target-branch: main
38+
commit-message: ${{ github.event.head_commit.message }}
39+
- name: Pushes Module Usage Guide
40+
uses: dmnemec/copy_file_to_another_repo_action@main
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }}
44+
with:
45+
source_file: 'docs/module-usage-guide/README.md'
46+
destination_repo: 'sourcefuse/arc-docs'
47+
destination_folder: 'docs/arc-iac-docs/modules/terraform-aws-arc-db/docs/module-usage-guide'
48+
user_email: 'github-actions@github.com'
49+
user_name: ${{ github.actor }}
50+
commit_message: ${{ github.event.head_commit.message }}

.pre-commit-config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
repos:
33
- repo: https://github.com/adrienverge/yamllint
4-
rev: v1.32.0
4+
rev: v1.29.0
55
hooks:
66
- id: yamllint
77
args:
88
- '-d {extends: default, rules: {line-length: {max: 120}}}' # override to match .editorconfig
99
- -s
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.5.0
11+
rev: v4.4.0
1212
hooks:
1313
- id: check-yaml
1414
args:
@@ -19,15 +19,11 @@ repos:
1919
- --markdown-linebreak-ext=md
2020
- id: end-of-file-fixer
2121
- repo: https://github.com/antonbabenko/pre-commit-terraform
22-
rev: v1.83.4
22+
rev: v1.77.1
2323
hooks:
2424
- id: terraform_validate
2525
- id: terraform_tflint
2626
- id: terraform_fmt
2727
args:
2828
- --args=-recursive
2929
- id: terraform_docs
30-
- repo: https://github.com/dnephin/pre-commit-golang
31-
rev: v0.5.1
32-
hooks:
33-
- id: go-fmt

.terraform-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
latest:^1.5
1+
latest:^1.7

0 commit comments

Comments
 (0)