Skip to content

Commit

Permalink
chore: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
js-timbirkett committed Mar 6, 2020
0 parents commit 6338f6d
Show file tree
Hide file tree
Showing 20 changed files with 344 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

<a name="unreleased"></a>
## [Unreleased]
{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}[{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }}) {{ .Subject }}
{{ end -}}
{{ end }}
#### 🔮 Other Commits
{{ range .Unreleased.Commits -}}
{{ if not .Subject -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}[{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }}) {{ .Header }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ if .CommitGroups -}}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}[{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }}) {{ .Subject }}
{{ end }}
{{ end -}}
{{ end -}}
#### 🔮 Other Commits
{{ range .Commits -}}
{{ if not .Subject -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}[{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }}) {{ .Header }}
{{ end -}}
{{ end }}

{{- if .NoteGroups }}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes -}}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
29 changes: 29 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/JSainsburyPLC/terraform-aws-eks
options:
commit_groups:
title_maps:
build: 🏭 Build
chore: 🔧 Maintenance
ci: 💜 Continuous Integration
docs: 📘 Documentation
feat: ✨ Features
fix: 🐛 Bug Fixes
perf: 🚀 Performance Improvements
refactor: 💎 Code Refactoring
revert: ◀️ Revert Change
security: 🛡 Security Fix
style: 🎶 Code Style
test: 💚 Testing
header:
pattern: '^(\w*)(?:\(([\w\$\.\-\*\s]*)\))?\:\s(.*)$'
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE
30 changes: 30 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# EditorConfig is awesome: http://EditorConfig.org
# Uses editorconfig to maintain consistent coding styles

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

[*.{tf,tfvars,hcl}]
indent_size = 2
indent_style = space

[*.md]
max_line_length = 0
trim_trailing_whitespace = false

[Makefile]
tab_width = 2
indent_style = tab

[COMMIT_EDITMSG]
max_line_length = 0
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug Report
about: Create a report to help us improve a current feature
labels: bug, needs triage
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here such as: tool versions, OS, links to
source code or resources.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature Request
about: Suggest an idea for new functionality or a shiny new feature
labels: enhancement, needs triage
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/user_story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: User Story
about: A valuable increment of functionality, testable by the users
labels: user story
---

1. **As a** [user concerned by the story]
1. **I want** [goal of the story]
1. **so that** [reason for the story]

## Acceptance Criteria

- [ ] Should ‹testable condition that should be satisfied›
- [ ] Should ‹testable condition that should be satisfied›
- [ ]

## Delete following sections as necessary

### Roles

* _Operator_ of the Bosun PaaS (possibly a candidate _user_)
* _User_ of the Bosun PaaS
* _Product Owner_ of products on the Bosun PaaS
* _Security Engineer_ overseeing the Bosun PaaS

### A good user story should be (I-N-V-E-S-T principle)

* _Independent_ (from other user stories, allowing to realize them in any order);
* _Negotiable_ (omit details that would freeze the story);
* _Valuable_ (implementation delivers an increment of functionality, observable by and useful to users);
* _Estimatable_ (developers should be able to estimate its size relative to other stories);
* _Sizable_ (implementation fits in one iteration – if it needs many to complete, it is an EPIC);
* _Testable_ (user must be able to check the conditions of satisfaction).
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# IDE Files
.idea
*.iml
*.swp
.DS_Store


# Local .terraform and .terragrunt-cache directories
**/.terraform/*
**/.terragrunt-cache/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
# .tfvars files are managed as part of configuration and so should be included in
# version control.
#
# example.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
#
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
exclude: vendor
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.25.0
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_tflint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-merge-conflict
1 change: 1 addition & 0 deletions .terraform-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.12.20
2 changes: 2 additions & 0 deletions .whistle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
repo: terraform-aws-eks
type: terraform-module
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Contributing
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.PHONY: release

TYPE := patch
VERSION := $(shell semtag final -s $(TYPE) -o)

release:
git checkout master
git pull origin master
@echo $(VERSION) | grep "ERROR" && exit 1 || true
git-chglog -o CHANGELOG.md --next-tag $(VERSION)
git add CHANGELOG.md
git commit -m "chore(release): Update changelog for $(VERSION)"
git tag $(VERSION)
git push origin master --tags
5 changes: 5 additions & 0 deletions OWNER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Owner

This repository is owned by [Team Bosun](https://github.com/orgs/JSainsburyPLC/teams/team-bosun).

The captain is [Joe Moran](mailto:[email protected]).
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![terraform-aws-eks](./media/logo.png)

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-green.svg)](https://conventionalcommits.org)

# terraform-aws-eks

<!-- Add a sensible description of this repository -->

## Links

- [Owner](./OWNER.md)
- [Contributing](./CONTRIBUTING.md)
- [Requirements](./REQUIREMENTS.md)


<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Providers

No provider.

## Inputs

No input.

## Outputs

No output.

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
48 changes: 48 additions & 0 deletions REQUIREMENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Requirements

<!--
All requirements to build / run / test this software should be specified in this file.
-->


### git chglog

> Anytime, anywhere, Write your CHANGELOG.
https://github.com/git-chglog/git-chglog

```
brew tap git-chglog/git-chglog
brew install git-chglog
```

### pre commit

> Collection of git hooks for Terraform to be used with pre-commit framework
https://github.com/antonbabenko/pre-commit-terraform

Follow the quick-start here for setup instructions: https://pre-commit.com/#quick-start

```
brew install pre-commit gawk terraform-docs tflint
```

Install hooks:
```
pre-commit install
```

To have pre-commit hooks available in every cloned repo:
```
git config --global init.templateDir ~/.git-template
pre-commit init-templatedir ~/.git-template
```

### semtag

> Semantic Tagging Script for Git
https://github.com/pnikosis/semtag


Empty file added main.tf
Empty file.
Binary file added media/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added outputs.tf
Empty file.
Empty file added variables.tf
Empty file.
7 changes: 7 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
terraform {
required_version = "~> 0.12.20"

required_providers {
aws = "~> 2.46"
}
}

0 comments on commit 6338f6d

Please sign in to comment.