Skip to content

Commit ee6938f

Browse files
authored
feat: linter action + dependabot (#5)
1 parent b6b45ed commit ee6938f

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: daily

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
jobs:
5+
lint:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest]
10+
terraform-versions: [1.1.x]
11+
steps:
12+
- name: Checkout
13+
uses: actions/[email protected]
14+
15+
- name: Setup Terraform
16+
uses: hashicorp/[email protected]
17+
with:
18+
terraform_version: ${{ matrix['terraform-versions'] }}
19+
terraform_wrapper: false
20+
21+
- name: Terraform fmt
22+
id: fmt
23+
run: terraform fmt -check

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ In particular:
88
- Optionally, it creates a user named after the database when not specified.
99
- Optionally, it creates two roles to obtain credentials via Vault:
1010

11-
- `${vault_backend_path}/${DBNAME}-all-privileges` with `ALL PRIVILEGES` permissions.
12-
- `${vault_backend_path}/${DBNAME}-read-only` with `SELECT` permissions.
11+
- `${vault_backend_path}/${DBNAME}-all-privileges` with `ALL PRIVILEGES` permissions.
12+
- `${vault_backend_path}/${DBNAME}-read-only` with `SELECT` permissions.
1313

1414
- When the intent is to use Vault, it's recommended to **NOT** provide the `plaintext_password`.
1515

16-
1716
## Usage
1817

1918
```hcl
@@ -35,5 +34,6 @@ module "my_database" {
3534
# Optional
3635
vault_backend_path = "mysql/my-cluster"
3736
vault_db_connection_name = "my-cluster"
37+
vault_role_default_ttl = 3600
3838
}
3939
```

0 commit comments

Comments
 (0)