You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-3Lines changed: 43 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,41 @@ This repo builds the ECR (Elastic Container Registry) repositories for container
10
10
11
11
The only dependency is the ARN of the OpenID Connect Provider (placed in Parameter Store by the [mitlib-tf-workloads-init](https://github.com/MITLibraries/mitlib-tf-workloads-init) repo).
12
12
13
+
### Pre-Commit Hooks
14
+
15
+
For proper linting and checking, this repo uses pre-commit hooks. The following should be installed in the local workstation
After the first checkout locally, run the following command to initialize the pre-commit hooks.
23
+
24
+
```bash
25
+
pre-commit install --hook-type pre-push
26
+
```
27
+
28
+
It is possible to run the pre-commit hooks manually. To run all the pre-commit hooks for this repo, run
29
+
30
+
```bash
31
+
pre-commit run --all-files
32
+
```
33
+
34
+
To run just the checkov checker, run
35
+
36
+
```bash
37
+
pre-commit run checkov
38
+
```
39
+
40
+
To run just the `terraform-docs` hook to update the README, run
41
+
42
+
```bash
43
+
pre-commit run terraform-docs-go
44
+
```
45
+
46
+
See [.pre-commit-config.yaml](./.pre-commit-config.yaml) for other pre-commit hooks that can be run.
47
+
13
48
## Usage
14
49
15
50
There is a tight relationship between ECR repositories created here and the associated application repositories in GitHub due to the use of OIDC in the GitHub Actions in those application repositories. Make sure to coordinate any new ECR repositories with the developers building the applications that will be published there.
@@ -61,14 +96,14 @@ then replace all the ssm parameter references for `oidc_arn` with `aws_iam_openi
61
96
62
97
| Name | Version |
63
98
|------|---------|
64
-
| terraform |~> 1.2|
65
-
| aws |~> 4.0 |
99
+
| terraform |~> 1.5|
100
+
| aws |~> 5.0 |
66
101
67
102
## Providers
68
103
69
104
| Name | Version |
70
105
|------|---------|
71
-
| aws |4.37.0 |
106
+
| aws |5.62.0 |
72
107
73
108
## Modules
74
109
@@ -85,6 +120,7 @@ then replace all the ssm parameter references for `oidc_arn` with `aws_iam_openi
0 commit comments