Skip to content

Commit 8f35698

Browse files
authoredJul 23, 2022
Merge pull request #15 from terraform-module/chore/update-deps
Chore/update deps
2 parents 282e552 + 5880f1b commit 8f35698

18 files changed

+236
-395
lines changed
 

‎.chglog/CHANGELOG.tpl.md

-51
This file was deleted.

‎.chglog/config.yml

-10
This file was deleted.

‎.github/CODE_OF_CONDUCT.md

-3
This file was deleted.

‎.github/CONTRIBUTING.md

-53
This file was deleted.

‎.github/FUNDING.yml

-10
This file was deleted.

‎.github/release-drafter.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+
_extends: .github

‎.github/settings.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
_extends: .github
3+
4+
repository:
5+
# See https://developer.github.com/v3/repos/#edit for all available settings.
6+
name: terraform-aws-ecs-lambda
7+
description: "ℹ️ Deploy serverless function to AWS VPC."
8+
homepage: https://ivankatliarchuk.github.io
9+
topics: ivank, terraform, terraform-module, lambda, serverless
10+
private: false
11+
has_issues: true
12+
has_projects: false
13+
has_wiki: false
14+
has_downloads: false
15+
has_pages: true
16+
is_template: true
17+
default_branch: master
18+
allow_squash_merge: true
19+
allow_merge_commit: true
20+
allow_rebase_merge: true
21+
delete_branch_on_merge: true
22+
enable_automated_security_fixes: true
23+
enable_vulnerability_alerts: false
24+
25+
branches:
26+
- name: master

‎.github/stale.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration for https://github.com/probot/stale
2+
_extends: .github

‎.github/workflows/linter.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: linter
3+
# This workflow is triggered on pushes to the repository.
4+
on:
5+
push:
6+
pull_request:
7+
branches:
8+
- main
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
terraform-validate:
14+
name: code format
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
# https://github.com/hashicorp/setup-terraform
19+
- uses: hashicorp/setup-terraform@v2
20+
21+
- name: Cache terraform folder
22+
uses: actions/cache@v3
23+
with:
24+
path: ./.terraform
25+
key: terraform
26+
27+
- name: terraform fmt
28+
run: terraform fmt -check -recursive -diff
29+
continue-on-error: true
30+
31+
- name: terraform init
32+
run: terraform init
33+
34+
- name: terraform validate
35+
run: terraform validate
36+
37+
tflint:
38+
name: "tflint"
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions/cache@v3
43+
name: Cache tflint plugin dir
44+
with:
45+
path: ~/.tflint.d/plugins
46+
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
47+
- uses: terraform-linters/setup-tflint@v2
48+
name: setup tflint
49+
- name: init tflint
50+
run: tflint --init --config .tflint.hcl
51+
- name: run tflint
52+
run: tflint -f compact --config .tflint.hcl

‎.github/workflows/main.yaml

-34
This file was deleted.

‎.github/workflows/pr-title.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 'validate-pr-title'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: validate pr title
13+
runs-on: ubuntu-latest
14+
steps:
15+
# Please look up the latest version from
16+
# https://github.com/amannn/action-semantic-pull-request/releases
17+
- uses: amannn/action-semantic-pull-request@v4.5.0
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
# Configure which types are allowed.
22+
# Default: https://github.com/commitizen/conventional-commit-types
23+
types: |
24+
fix
25+
feat
26+
docs
27+
ci
28+
chore
29+
# Configure that a scope must always be provided.
30+
requireScope: false
31+
# If `subjectPattern` is configured, you can use this property to override
32+
# the default error message that is shown when the pattern doesn't match.
33+
# The variables `subject` and `title` can be used within the message.
34+
subjectPatternError: |
35+
The subject "{subject}" found in the pull request title "{title}"
36+
didn't match the configured pattern. Please ensure that the subject
37+
starts with an uppercase character.
38+
# For work-in-progress PRs you can typically use draft pull requests
39+
# from Github. However, private repositories on the free plan don't have
40+
# this option and therefore this action allows you to opt-in to using the
41+
# special "[WIP]" prefix to indicate this state. This will avoid the
42+
# validation of the PR title and the pull request checks remain pending.
43+
# Note that a second check will be reported if this is enabled.
44+
wip: true
45+
# When using "Squash and merge" on a PR with only one commit, GitHub
46+
# will suggest using that commit message instead of the PR title for the
47+
# merge commit, and it's easy to commit this by mistake. Enable this option
48+
# to also validate the commit message for one commit PRs.
49+
validateSingleCommit: false

‎.github/workflows/release.draft.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: release.draft
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
workflow_dispatch:
9+
inputs:
10+
prerelease:
11+
description: Is this a pre-release
12+
required: true
13+
default: true
14+
type: boolean
15+
publish:
16+
description: Publish release
17+
required: false
18+
default: false
19+
type: boolean
20+
bump:
21+
description: 'Bumping (#major, #minor or #patch)'
22+
required: false
23+
default: patch
24+
type: choice
25+
options:
26+
- 'patch'
27+
- 'minor'
28+
- 'major'
29+
30+
jobs:
31+
draft-a-release:
32+
runs-on: ubuntu-latest
33+
steps:
34+
35+
- uses: actions/checkout@v3
36+
37+
- name: check next version
38+
uses: anothrNick/github-tag-action@1.39.0
39+
id: tag
40+
env:
41+
DRY_RUN: true
42+
WITH_V: true
43+
DEFAULT_BUMP: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.bump || 'patch' }}
44+
45+
- name: release-draft
46+
uses: release-drafter/release-drafter@v5.20.0
47+
if: "!contains(github.event.head_commit.message, 'skip')"
48+
id: release
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
publish: ${{ github.event.inputs.publish }}
53+
prerelease: ${{ github.event.inputs.prerelease }}
54+
tag: ${{ steps.tag.outputs.new_tag }}
55+
56+
- name: check-version
57+
run: |
58+
echo "release it: ${{ github.event.inputs.prerelease }}"
59+
echo "out: ${{ steps.release.name }}"
60+
echo "tag: ${{ steps.release.outputs.tag_name }}"

‎.github/workflows/release.yaml

-49
This file was deleted.

‎.pre-commit-config.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@ repos:
1616
- id: check-merge-conflict
1717
- id: detect-aws-credentials
1818
args: ['--allow-missing-credentials']
19-
- repo: git://github.com/antonbabenko/pre-commit-terraform
19+
- repo: https://github.com/antonbabenko/pre-commit-terraform
2020
rev: v1.31.0
2121
hooks:
2222
- id: terraform_fmt
2323
- id: terraform_docs
2424
- id: terraform_tflint
25-
- repo: git://github.com/smian/pre-commit-makefile
26-
rev: 261f8fb4b31dfdc05d1a1d7fbde1f1462ecde66d
27-
hooks:
28-
- id: makefile-doc

‎.tflint.hcl

+25-11
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,48 @@
11
config {
2-
deep_check = false
3-
ignore_module = {}
4-
varfile = []
2+
module = false
53
}
64

7-
rule "terraform_documented_variables" {
5+
plugin "aws" {
86
enabled = true
7+
version = "0.13.3"
8+
source = "github.com/terraform-linters/tflint-ruleset-aws"
99
}
1010

11-
rule "terraform_documented_outputs" {
11+
rule "terraform_comment_syntax" {
1212
enabled = true
1313
}
1414

15-
rule "terraform_comment_syntax" {
15+
rule "terraform_deprecated_index" {
1616
enabled = true
1717
}
1818

19-
rule "terraform_naming_convention" {
19+
rule "terraform_deprecated_interpolation" {
2020
enabled = true
2121
}
2222

23-
rule "terraform_deprecated_interpolation" {
23+
rule "terraform_documented_outputs" {
2424
enabled = true
2525
}
2626

27-
rule "terraform_deprecated_index" {
27+
rule "terraform_documented_variables" {
2828
enabled = true
2929
}
3030

31-
rule "terraform_required_providers" {
31+
rule "terraform_module_pinned_source" {
3232
enabled = true
33+
style = "flexible"
3334
}
3435

35-
rule "terraform_required_version" {
36+
rule "terraform_module_version" {
37+
enabled = true
38+
}
39+
40+
rule "terraform_naming_convention" {
41+
enabled = true
42+
format = "snake_case"
43+
}
44+
45+
rule "terraform_standard_module_structure" {
3646
enabled = true
3747
}
3848

@@ -43,3 +53,7 @@ rule "terraform_typed_variables" {
4353
rule "terraform_unused_declarations" {
4454
enabled = true
4555
}
56+
57+
rule "terraform_unused_required_providers" {
58+
enabled = true
59+
}

‎CHANGELOG.md

-164
This file was deleted.

‎README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# AWS Lambda
22

3-
Deploy Lambda into VPC or outside of the vpc
3+
Deploy Lambda into VPC or outside of the VPC.
4+
5+
---
6+
7+
![](https://github.com/terraform-module/terraform-aws-lambda/workflows/release/badge.svg)
8+
![](https://github.com/terraform-module/terraform-aws-lambda/workflows/commit-check/badge.svg)
9+
![](https://github.com/terraform-module/terraform-aws-lambda/workflows/labeler/badge.svg)
410

511
[![](https://img.shields.io/github/license/terraform-module/terraform-aws-lambda)](https://github.com/terraform-module/terraform-aws-lambda)
612
![](https://img.shields.io/github/v/tag/terraform-module/terraform-aws-lambda)
7-
[![](https://img.shields.io/github/workflow/status/terraform-module/terraform-aws-lambda/validator/master)](https://github.com/terraform-module/terraform-aws-lambda/actions?query=is%3Acompleted)
8-
![](https://github.com/terraform-module/terraform-aws-lambda/workflows/Validator/badge.svg)
913
![](https://img.shields.io/issues/github/terraform-module/terraform-aws-lambda)
1014
![](https://img.shields.io/github/issues/terraform-module/terraform-aws-lambda)
1115
![](https://img.shields.io/github/issues-closed/terraform-module/terraform-aws-lambda)
@@ -15,15 +19,19 @@ Deploy Lambda into VPC or outside of the vpc
1519
![](https://img.shields.io/github/commit-activity/m/terraform-module/terraform-aws-lambda)
1620
![](https://img.shields.io/github/contributors/terraform-module/terraform-aws-lambda)
1721
![](https://img.shields.io/github/last-commit/terraform-module/terraform-aws-lambda)
22+
[![Maintenance](https://img.shields.io/badge/Maintenu%3F-oui-green.svg)](https://GitHub.com/terraform-module/terraform-aws-lambda/graphs/commit-activity)
23+
[![GitHub forks](https://img.shields.io/github/forks/terraform-module/terraform-aws-lambda.svg?style=social&label=Fork)](https://github.com/terraform-module/terraform-aws-lambda)
24+
25+
---
1826

1927
## Usage example
2028

2129
Here's the gist of using it via github.
2230

2331
```terraform
24-
module lambda {
32+
module "lambda" {
2533
source = "terraform-module/lambda/aws"
26-
version = "2.10.0"
34+
version = "~> 2"
2735
2836
function_name = "lambda-name-to-deploy"
2937
filename = "${path.module}/lambda.zip"

‎renovate.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"local>terraform-module/.github:renovate-config"
5+
]
6+
}

0 commit comments

Comments
 (0)
Please sign in to comment.