Skip to content

Commit 3320657

Browse files
authored
Merge pull request #3 from geekcell/update-templates
docs: update templates
2 parents b1f740a + e772469 commit 3320657

File tree

10 files changed

+144
-17
lines changed

10 files changed

+144
-17
lines changed

.github/.templatesyncignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ README.md
22
.github/workflows/*
33
.terraform-docs.yml
44
docs/20-badges.md
5+
docs/assets/logo.svg
56
*.tf
7+
test/*
8+
go.mod
9+
go.sum

.github/dependabot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
##############################
3+
## Dependabot configuration ##
4+
##############################
5+
6+
#
7+
# Documentation:
8+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates
9+
#
10+
11+
version: 2
12+
updates:
13+
# Maintain dependencies for GitHub Actions
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "daily"
18+
open-pull-requests-limit: 0
19+
20+
# Maintain dependencies for Terraform Providers
21+
- package-ecosystem: "terraform"
22+
directory: "/"
23+
schedule:
24+
interval: "daily"
25+
open-pull-requests-limit: 0
26+
27+
# Maintain dependencies for Golang
28+
- package-ecosystem: "gomod"
29+
directory: "/"
30+
schedule:
31+
interval: "daily"
32+
open-pull-requests-limit: 0

.github/pull_request-template.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
...
77

8-
## How this PR fixes it
9-
10-
...
11-
128
## Readiness Checklist
139

1410
### Author/Contributor

.github/workflows/release.yaml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
####################################
3-
## Draft releases on Push to main ##
4-
####################################
2+
#####################
3+
## Create releases ##
4+
#####################
55

66
#
77
# Documentation:
@@ -13,9 +13,8 @@ on:
1313
push:
1414
branches: [ main ]
1515
tags: [ 'v*.*.*' ]
16-
17-
permissions:
18-
contents: write
16+
pull_request:
17+
types: [ labeled ]
1918

2019
#################
2120
# Start the job #
@@ -26,6 +25,7 @@ jobs:
2625
###############
2726
create-release:
2827
name: Create Release
28+
if: github.event.action != 'labeled'
2929
runs-on: ubuntu-latest
3030
timeout-minutes: 10
3131
steps:
@@ -75,3 +75,22 @@ jobs:
7575
tag_name: ${{ steps.tag.outputs.value }}
7676
draft: false
7777
prerelease: false
78+
79+
###########################
80+
# Release preview comment #
81+
###########################
82+
release-check:
83+
if: github.event.action == 'labeled'
84+
runs-on: ubuntu-latest
85+
steps:
86+
############################
87+
# Checkout the source code #
88+
############################
89+
- name: Checkout Code
90+
uses: actions/[email protected]
91+
92+
#######################
93+
# Post status comment #
94+
#######################
95+
- name: Post bumpr status comment
96+
uses: haya14busa/action-bumpr@v1

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.76.0
3+
rev: v1.80.0
44
hooks:
55
- id: terraform_docs
66
- id: terraform_fmt
77
- id: terraform_validate
8+
args:
9+
- --hook-config=--retry-once-with-cleanup=true
810
exclude: '^[^/]+$'
911
- id: terraform_tflint
1012
exclude: ^examples/
1113

1214
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v4.3.0
15+
rev: v4.4.0
1416
hooks:
1517
- id: trailing-whitespace
1618
- id: end-of-file-fixer

README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,42 @@
11
<!-- BEGIN_TF_DOCS -->
2+
[![Geek Cell GmbH](https://raw.githubusercontent.com/geekcell/.github/main/geekcell-github-banner.png)](https://www.geekcell.io/)
23

4+
### Code Quality
5+
[![License](https://img.shields.io/github/license/geekcell/terraform-aws-ecs-task-definition)](https://github.com/geekcell/terraform-aws-ecs-task-definition/blob/master/LICENSE)
6+
[![GitHub release (latest tag)](https://img.shields.io/github/v/release/geekcell/terraform-aws-ecs-task-definition?logo=github&sort=semver)](https://github.com/geekcell/terraform-aws-ecs-task-definition/releases)
7+
[![Release](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/release.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/release.yaml)
8+
[![Validate](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/validate.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/validate.yaml)
9+
[![Lint](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/linter.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/linter.yaml)
310

11+
<!--
12+
Comment in if Bridgecrew is configured
413
14+
### Security
15+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/general)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=INFRASTRUCTURE+SECURITY)
16+
17+
#### Cloud
18+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AWS+V1.2)
19+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_aws_13)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AWS+V1.3)
20+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_azure)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AZURE+V1.1)
21+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_azure_13)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AZURE+V1.3)
22+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_gcp)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+GCP+V1.1)
23+
24+
##### Container
25+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_kubernetes_16)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+KUBERNETES+V1.6)
26+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_eks_11)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+EKS+V1.1)
27+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_gke_11)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+GKE+V1.1)
28+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_kubernetes)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+KUBERNETES+V1.5)
29+
30+
#### Data protection
31+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/soc2)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=SOC2)
32+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/pci)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=PCI-DSS+V3.2)
33+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/pci_dss_v321)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=PCI-DSS+V3.2.1)
34+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/iso)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=ISO27001)
35+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/nist)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=NIST-800-53)
36+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/hipaa)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=HIPAA)
37+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/fedramp_moderate)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=FEDRAMP+%28MODERATE%29)
38+
39+
-->
540

641
# Terraform AWS ECS Task Definition Module
742

@@ -55,7 +90,7 @@ Terraform module for creating an AWS ECS Task Definition.
5590
## Resources
5691

5792
- resource.aws_ecs_task_definition.main (main.tf#6)
58-
- resource.aws_iam_role_policy_attachment.execute_additional (main.tf#112)
59-
- resource.aws_iam_role_policy_attachment.execute_command (main.tf#137)
60-
- resource.aws_iam_role_policy_attachment.task_additional (main.tf#130)
93+
- resource.aws_iam_role_policy_attachment.execute_additional (main.tf#113)
94+
- resource.aws_iam_role_policy_attachment.execute_command (main.tf#139)
95+
- resource.aws_iam_role_policy_attachment.task_additional (main.tf#132)
6196
<!-- END_TF_DOCS -->

docs/10-header.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[![Geek Cell GmbH](https://raw.githubusercontent.com/geekcell/.github/main/geekcell-github-banner.png)](https://www.geekcell.io/)

docs/20-badges.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
### Code Quality
2+
[![License](https://img.shields.io/github/license/geekcell/terraform-aws-ecs-task-definition)](https://github.com/geekcell/terraform-aws-ecs-task-definition/blob/master/LICENSE)
3+
[![GitHub release (latest tag)](https://img.shields.io/github/v/release/geekcell/terraform-aws-ecs-task-definition?logo=github&sort=semver)](https://github.com/geekcell/terraform-aws-ecs-task-definition/releases)
4+
[![Release](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/release.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/release.yaml)
5+
[![Validate](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/validate.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/validate.yaml)
6+
[![Lint](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/linter.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-ecs-task-definition/actions/workflows/linter.yaml)
7+
8+
<!--
9+
Comment in if Bridgecrew is configured
10+
11+
### Security
12+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/general)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=INFRASTRUCTURE+SECURITY)
13+
14+
#### Cloud
15+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AWS+V1.2)
16+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_aws_13)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AWS+V1.3)
17+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_azure)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AZURE+V1.1)
18+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_azure_13)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+AZURE+V1.3)
19+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_gcp)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+GCP+V1.1)
20+
21+
##### Container
22+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_kubernetes_16)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+KUBERNETES+V1.6)
23+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_eks_11)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+EKS+V1.1)
24+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_gke_11)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+GKE+V1.1)
25+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/cis_kubernetes)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=CIS+KUBERNETES+V1.5)
26+
27+
#### Data protection
28+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/soc2)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=SOC2)
29+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/pci)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=PCI-DSS+V3.2)
30+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/pci_dss_v321)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=PCI-DSS+V3.2.1)
31+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/iso)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=ISO27001)
32+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/nist)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=NIST-800-53)
33+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/hipaa)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=HIPAA)
34+
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-task-definition/fedramp_moderate)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-task-definition&benchmark=FEDRAMP+%28MODERATE%29)
35+
36+
-->

docs/assets/logo.svg

Whitespace-only changes.

main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ resource "aws_ecs_task_definition" "main" {
100100
module "iam_role_ecs_exec" {
101101
count = var.create_execution_role ? 1 : 0
102102

103-
source = "github.com/geekcell/terraform-aws-iam-role?ref=v1"
103+
source = "geekcell/iam-role/aws"
104+
version = ">= 1.0.0, < 2.0.0"
104105

105106
name = coalesce(var.execution_role_name, "${var.name}-ecs-exec")
106107
use_name_prefix = var.execution_role_name_prefix
@@ -119,7 +120,8 @@ resource "aws_iam_role_policy_attachment" "execute_additional" {
119120
module "iam_role_ecs_task" {
120121
count = var.create_task_role ? 1 : 0
121122

122-
source = "github.com/geekcell/terraform-aws-iam-role?ref=v1"
123+
source = "geekcell/iam-role/aws"
124+
version = ">= 1.0.0, < 2.0.0"
123125

124126
name = coalesce(var.task_role_name, "${var.name}-ecs-task")
125127
use_name_prefix = var.task_role_name_prefix

0 commit comments

Comments
 (0)