Skip to content

Commit 02f1adc

Browse files
aarti-joshi-nttdben-vaughan-nttdaartijoshi-nttchris11-taylor-nttd
authored
ECS Cluster (#1)
Signed-off-by: Aarti Joshi <160620949+aarti-joshi-nttd@users.noreply.github.com> Co-authored-by: Ben Vaughan <ben.vaughan@nttdata.com> Co-authored-by: aarti.joshi <aarti.joshi@nttdata.com> Co-authored-by: Chris Taylor <132399041+chris11-taylor-nttd@users.noreply.github.com>
1 parent 5b336fc commit 02f1adc

32 files changed

+2798
-1
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "gomod"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
- package-ecosystem: "terraform"
12+
directory: "/"
13+
schedule:
14+
interval: "weekly"

.github/release-drafter.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name-template: "$RESOLVED_VERSION"
3+
tag-template: "$RESOLVED_VERSION"
4+
template: |
5+
# Changelog
6+
7+
$CHANGES
8+
9+
---
10+
11+
See details of [all code changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION) since previous release.
12+
13+
categories:
14+
- title: ":warning: Breaking Changes"
15+
labels:
16+
- "major"
17+
- title: "🚀 Features"
18+
labels:
19+
- "minor"
20+
- title: "🔧 Fixes"
21+
collapse-after: 3
22+
labels:
23+
- "patch"
24+
25+
autolabeler:
26+
- label: "major"
27+
branch:
28+
- '/(patch|bug|fix|feature|chore)!\/.+/'
29+
- label: "minor"
30+
branch:
31+
- '/feature\/.+/'
32+
- label: "patch"
33+
branch:
34+
- '/(patch|bug|fix|chore)\/.+/'
35+
36+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
37+
38+
version-resolver:
39+
major:
40+
labels:
41+
- "major"
42+
minor:
43+
labels:
44+
- "minor"
45+
patch:
46+
labels:
47+
- "patch"
48+
- "dependencies"
49+
default: patch
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Label Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
check:
9+
name: "Label Pull Request"
10+
permissions:
11+
contents: read
12+
issues: write
13+
pull-requests: write
14+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-pr-label-by-branch.yml@0.11.0
15+
secrets: inherit # pragma: allowlist secret
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check AWS Terraform Code
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, ready_for_review]
6+
branches: [main]
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
check:
14+
name: "Check AWS Terraform Code"
15+
permissions:
16+
contents: read
17+
id-token: write
18+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terraform-check-aws.yml@0.11.0
19+
with:
20+
assume_role_arn: ${{ vars.TERRAFORM_CHECK_AWS_ASSUME_ROLE_ARN }}
21+
region: ${{ vars.TERRAFORM_CHECK_AWS_REGION }}
22+
secrets: inherit # pragma: allowlist secret
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
release-on-merge:
13+
name: "Create and Publish Release on Merge"
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-release-on-merge.yml@0.11.0
18+
secrets: inherit # pragma: allowlist secret

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
terraform.*
2+
.repo/
3+
components/
4+
.semverbot.toml
5+
vendor/
6+
7+
.idea
8+
!examples/*.tfvars
9+
10+
# We don't want to commit the test run lock files
11+
.terraform.lock.hcl
12+
13+
# Don't include the .test-data directory created by Terratest's test-structure module
14+
**/.test-data/*
15+
16+
# Local .terraform directories
17+
**/.terraform/*
18+
19+
# Local .terragrunt directories
20+
**/.terragrunt/*
21+
22+
# .tfstate files
23+
*.tfstate
24+
*.tfstate.*
25+
*.tfplan
26+
tfplan.*
27+
tfplan
28+
29+
# Crash log files
30+
crash.log
31+
crash.*.log
32+
33+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
34+
# password, private keys, and other secrets. These should not be part of version
35+
# control as they are data points which are potentially sensitive and subject
36+
# to change depending on the environment.
37+
*.tfvars.json
38+
*.auto.tfvars
39+
40+
# Ignore override files as they are usually used to override resources locally and so
41+
# are not checked in
42+
override.tf
43+
override.tf.json
44+
*_override.tf
45+
*_override.tf.json
46+
provider.tf
47+
48+
# Include override files you do wish to add to version control using negated pattern
49+
# !example_override.tf
50+
51+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
52+
# example: *tfplan*
53+
54+
# Ignore CLI configuration files
55+
.terraformrc
56+
terraform.rc
57+
58+
# Files from common modules
59+
azure_env.sh
60+
.releaserc.json
61+
62+
# VS Code
63+
.vscode/
64+
.terraform

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: "2"
2+
run:
3+
# Timeout for analysis, e.g. 30s, 5m.
4+
timeout: 5m
5+
allow-parallel-runners: true

.pre-commit-config.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# .pre-commit-config.yaml
2+
repos:
3+
- repo: local
4+
hooks:
5+
- id: forbidden-files
6+
name: forbidden files
7+
entry:
8+
found Copier update rejection files; review and remove them before
9+
merging.
10+
language: fail
11+
files: "\\.rej$"
12+
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
rev: v4.5.0
14+
hooks:
15+
- id: trailing-whitespace
16+
- id: check-case-conflict
17+
- id: check-executables-have-shebangs
18+
- id: check-json
19+
- id: check-merge-conflict
20+
args: [--assume-in-merge]
21+
- id: check-shebang-scripts-are-executable
22+
- id: check-yaml
23+
args:
24+
- --allow-multiple-documents
25+
- id: end-of-file-fixer
26+
- id: mixed-line-ending
27+
args:
28+
- --fix=auto
29+
- repo: https://github.com/antonbabenko/pre-commit-terraform
30+
rev: v1.99.0
31+
hooks:
32+
- id: terraform_fmt
33+
- id: terraform_validate
34+
- id: terraform_docs
35+
args:
36+
- --hook-config=--path-to-file=README.md
37+
- --hook-config=--add-to-existing-file=true
38+
- --hook-config=--create-file-if-not-exist=true
39+
- --args=--sort=false
40+
- repo: https://github.com/golangci/golangci-lint
41+
rev: v2.2.1
42+
hooks:
43+
- id: golangci-lint
44+
name: golangci-lint
45+
description: Fast linters runner for Go.
46+
entry: golangci-lint run --fix
47+
types: [go]
48+
language: golang
49+
pass_filenames: false
50+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
51+
rev: v9.22.0
52+
hooks:
53+
- id: commitlint
54+
stages: [commit-msg]
55+
additional_dependencies: ["@commitlint/config-conventional"]
56+
- repo: https://github.com/Yelp/detect-secrets
57+
rev: v1.5.0
58+
hooks:
59+
- id: detect-secrets
60+
args: ["--baseline", ".secrets.baseline"]
61+
exclude: package.lock.json

.secrets.baseline

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"version": "1.5.44",
3+
"plugins_used": [
4+
{
5+
"name": "ArtifactoryDetector"
6+
},
7+
{
8+
"name": "AWSKeyDetector"
9+
},
10+
{
11+
"name": "AzureStorageKeyDetector"
12+
},
13+
{
14+
"name": "Base64HighEntropyString",
15+
"limit": 4.5
16+
},
17+
{
18+
"name": "BasicAuthDetector"
19+
},
20+
{
21+
"name": "CloudantDetector"
22+
},
23+
{
24+
"name": "DiscordBotTokenDetector"
25+
},
26+
{
27+
"name": "GitHubTokenDetector"
28+
},
29+
{
30+
"name": "HexHighEntropyString",
31+
"limit": 3.0
32+
},
33+
{
34+
"name": "IbmCloudIamDetector"
35+
},
36+
{
37+
"name": "IbmCosHmacDetector"
38+
},
39+
{
40+
"name": "JwtTokenDetector"
41+
},
42+
{
43+
"name": "KeywordDetector",
44+
"keyword_exclude": ""
45+
},
46+
{
47+
"name": "MailchimpDetector"
48+
},
49+
{
50+
"name": "NpmDetector"
51+
},
52+
{
53+
"name": "PrivateKeyDetector"
54+
},
55+
{
56+
"name": "SendGridDetector"
57+
},
58+
{
59+
"name": "SlackDetector"
60+
},
61+
{
62+
"name": "SoftlayerDetector"
63+
},
64+
{
65+
"name": "SquareOAuthDetector"
66+
},
67+
{
68+
"name": "StripeDetector"
69+
},
70+
{
71+
"name": "TwilioKeyDetector"
72+
}
73+
],
74+
"filters_used": [
75+
{
76+
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
77+
},
78+
{
79+
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
80+
"min_level": 2
81+
},
82+
{
83+
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
84+
},
85+
{
86+
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
87+
},
88+
{
89+
"path": "detect_secrets.filters.heuristic.is_lock_file"
90+
},
91+
{
92+
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
93+
},
94+
{
95+
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
96+
},
97+
{
98+
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
99+
},
100+
{
101+
"path": "detect_secrets.filters.heuristic.is_sequential_string"
102+
},
103+
{
104+
"path": "detect_secrets.filters.heuristic.is_swagger_file"
105+
},
106+
{
107+
"path": "detect_secrets.filters.heuristic.is_templated_secret"
108+
}
109+
],
110+
"results": {},
111+
"generated_at": "2025-10-29T19:35:25Z"
112+
}

.terraform-docs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
formatter: "markdown"
2+
3+
output:
4+
file: "README.md"
5+
mode: "inject"
6+
7+
sort:
8+
enabled: false
9+
10+
sections:
11+
hide:
12+
- providers

0 commit comments

Comments
 (0)