From a31b23c8a337de9dd8dcceb30c1dbc634bf5ade2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Buja=C4=8Dek?= Date: Wed, 1 Jul 2020 14:39:43 +0200 Subject: [PATCH] Update readme, pre-commit hooks and github actions workflow --- .github/workflows/main.yml | 93 +++++++++++++++++ .pre-commit-config.yaml | 35 +++++++ .secrets.baseline | 66 ++++++++++++ LICENSE | 201 +++++++++++++++++++++++++++++++++++++ README.md | 77 +++++++++++++- ll-logo.png | Bin 0 -> 12095 bytes variables.tf | 9 +- 7 files changed, 477 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100644 .pre-commit-config.yaml create mode 100644 .secrets.baseline create mode 100644 LICENSE create mode 100644 ll-logo.png diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fbfa584 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,93 @@ +name: Terraform validation + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + TERRAFORM_DOCS_VERSION: "v0.9.1" + TFLINT_VERSION: "v0.16.2" + +jobs: + terraform-validation: + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-python@v1 + name: "SETUP: Python" + + - uses: actions/setup-go@v2 + name: "SETUP: Go" + + - uses: pat-s/always-upload-cache@v2.0.0 + id: cache-terraform-docs + name: "CACHE: terraform-docs Go module" + with: + path: | + ~/go/pkg/mod + ~/go/bin/terraform-docs + key: ${{ runner.os }}-terraform_docs-${{ env.TERRAFORM_DOCS_VERSION }} + restore-keys: | + ${{ runner.os}}-terraform_docs- + + - shell: bash + name: "INSTALL: terraform-docs" + if: steps.cache-terraform-docs.output.cache-hit != 'true' + env: + GO111MODULE: "on" + run: | + go get github.com/segmentio/terraform-docs@${{ env.TERRAFORM_DOCS_VERSION }} + + - shell: bash + name: "SETUP: Go path" + run: echo '::add-path::~/go/bin/' + + - uses: actions/checkout@v1 + name: Checkout source code + + - uses: pat-s/always-upload-cache@v2.0.0 + id: cache-pre-commit-dependencies + name: "CACHE: pip and pre-commit dependencies" + with: + path: | + ~/.cache/pre-commit + ~/.cache/pip + key: ${{ runner.os }}-pip-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + restore-keys: | + ${{ runner.os }}-pip-pre-commit- + + - uses: pat-s/always-upload-cache@v2.0.0 + id: cache-tflint + name: "CACHE: TFLint" + with: + path: | + ~/tflint/bin/ + key: ${{ runner.os }}-tflint-${{ env.TFLINT_VERSION }} + restore-keys: | + ${{ runner.os }}-tflint- + + - shell: bash + name: "INSTALL: detect-secrets" + run: | + pip install detect-secrets + + - shell: bash + name: "INSTALL: TFLint" + if: steps.cache-tflint.outputs.cache-hit != 'true' + run: | + wget https://github.com/terraform-linters/tflint/releases/download/${{ env.TFLINT_VERSION }}/tflint_linux_amd64.zip + unzip tflint_linux_amd64.zip + mkdir -p ~/tflint/bin/ + install tflint ~/tflint/bin/ + + - shell: bash + name: "SETUP: TFLint path" + run: | + echo '::add-path::~/tflint/bin/' + + - uses: pre-commit/action@v2.0.0 + name: "RUN: pre-commit" + env: + AWS_DEFAULT_REGION: "eu-central-1" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..c38b2a8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,35 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.1.0 + hooks: + - id: trailing-whitespace + - id: check-merge-conflict + - id: detect-aws-credentials + args: ['--allow-missing-credentials'] + - id: detect-private-key + - id: end-of-file-fixer + + - repo: https://github.com/gruntwork-io/pre-commit + rev: v0.1.9 + hooks: + - id: tflint + - id: terraform-validate + + - repo: git://github.com/antonbabenko/pre-commit-terraform + rev: v1.31.0 + hooks: + - id: terraform_fmt + - id: terraform_docs + args: + - '--args=--no-providers --sort-by-required' + + - repo: git://github.com/pecigonzalo/pre-commit-terraform-vars + rev: 8e947e99c45314397a8caacebefab44d74227b6b + hooks: + - id: terraform-vars + + - repo: https://github.com/Yelp/detect-secrets + rev: v0.13.1 + hooks: + - id: detect-secrets + args: ['--baseline', '.secrets.baseline'] diff --git a/.secrets.baseline b/.secrets.baseline new file mode 100644 index 0000000..9f69c02 --- /dev/null +++ b/.secrets.baseline @@ -0,0 +1,66 @@ +{ + "exclude": { + "files": null, + "lines": null + }, + "generated_at": "2020-06-29T14:20:55Z", + "plugins_used": [ + { + "name": "AWSKeyDetector" + }, + { + "name": "ArtifactoryDetector" + }, + { + "base64_limit": 4.5, + "name": "Base64HighEntropyString" + }, + { + "name": "BasicAuthDetector" + }, + { + "name": "CloudantDetector" + }, + { + "hex_limit": 3, + "name": "HexHighEntropyString" + }, + { + "name": "IbmCloudIamDetector" + }, + { + "name": "IbmCosHmacDetector" + }, + { + "name": "JwtTokenDetector" + }, + { + "keyword_exclude": null, + "name": "KeywordDetector" + }, + { + "name": "MailchimpDetector" + }, + { + "name": "PrivateKeyDetector" + }, + { + "name": "SlackDetector" + }, + { + "name": "SoftlayerDetector" + }, + { + "name": "StripeDetector" + }, + { + "name": "TwilioKeyDetector" + } + ], + "results": {}, + "version": "0.13.1", + "word_list": { + "file": null, + "hash": null + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f6f1438 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [2020] [Labyrinth Labs] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index b399706..6ce419b 100644 --- a/README.md +++ b/README.md @@ -1 +1,76 @@ -# terraform-aws-eks-alb-ingress \ No newline at end of file +# AWS EKS ALB Ingress Terraform module + +[![Labyrinth Labs logo](ll-logo.png)](https://www.lablabs.io) + +We help companies build, run, deploy and scale software and infrastructure by embracing the right technologies and principles. Check out our website at https://lablabs.io/ + +--- + +![Terraform validation](https://github.com/lablabs/terraform-aws-eks-alb-ingress/workflows/Terraform%20validation/badge.svg?branch=master) + +## Description + +A terraform module to deploy an Application Load Balancer (ALB) Ingress Controller on Amazon EKS cluster. + + +## Requirements + +| Name | Version | +|------|---------| +| terraform | ~> 0.12.0 | +| aws | ~> 2.0 | +| helm | ~> 1.0 | +| local | ~> 1.2 | +| null | ~> 2.0 | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| cluster\_identity\_oidc\_issuer | n/a | `any` | n/a | yes | +| cluster\_identity\_oidc\_issuer\_arn | n/a | `any` | n/a | yes | +| cluster\_name | n/a | `any` | n/a | yes | +| enabled | n/a | `bool` | n/a | yes | +| helm\_chart\_name | n/a | `string` | `"aws-alb-ingress-controller"` | no | +| helm\_chart\_version | n/a | `string` | `"0.1.13"` | no | +| helm\_release\_name | n/a | `string` | `"aws-alb-ingress-controller"` | no | +| helm\_repo\_name | n/a | `string` | `"eks-incubator"` | no | +| helm\_repo\_url | n/a | `string` | `"http://storage.googleapis.com/kubernetes-charts-incubator"` | no | +| ingress\_class | n/a | `string` | `"alb-ingress"` | no | +| k8s\_namespace | The k8s namespace in which the alb-ingress service account has been created | `string` | `"alb-ingress"` | no | +| k8s\_service\_account\_name | The k8s alb-ingress service account name | `string` | `"aws-alb-ingress-controller"` | no | +| mod\_dependency | Dependence variable binds all AWS resources allocated by this module, dependent modules reference this variable | `any` | `null` | no | +| replica\_count | n/a | `number` | `2` | no | + +## Outputs + +No output. + + + +## Contributing and reporting issues + +Feel free to create an issue in this repository if you have questions, suggestions or feature requests. + +## License + +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) + +See [LICENSE](LICENSE) for full details. + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. diff --git a/ll-logo.png b/ll-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..8aa2c6a4997fbdcf7009e089b2d07ad4a89218a6 GIT binary patch literal 12095 zcmbVxWl$YF(C)##xVsmJ;!xbRc#FHcyL)l>!ol6$DeiFK;O_3Ox9^Yp^WOR9o6KgC zooqIf+0E?pBvMIH3I&k>5dZ+7$ViK;000nr|He`9kpKGPNi$Ob04>c+?U##+p*xv_ zlf9XxjVYOnr-Lb(sfVQ*0N}9#&d_eAEOQFm#19PzK%=n|kr^;e_x3;HN~@QgxU~3s zE&Dl?H5cZ{QYSb*vz$46>~7jWaet)D%YIe&CajY9NKuyj(|LS-Yu|Z@HSX>AdGg#X z*F%cx>)VseOVv4c_%kPWk%L$7^E#B&y72z>dZs6L@1twxF_;t=OP}|4$PXoP_u2V- z%4O)#bEjp&X$`RY&2xPdQ~&E`ZpUqh-up((CyAecQZl2aDf#HLbmG&WS6ayDH+etA zX&KnV>tlY3K-`3fn2?Y+H*X<5<2O!`9_r`ej;rZq`}^sn+`~uY=MtS}`&f_L64Jt# z!%=^_4^zWueC3aKsB-5|2Y#VMpQ=r7L3eIB%7XJ%Wwy7Gsqqg^klvne)wPlz{pGy? zY#fRCTJqXXY}BwKrD?g782uX|9doAC#*QofhctHuGFy47 z=^fHjdeOC@2gZ9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5k^G7wQ_5aKEP-$EG)Me%A;gP{KdKD|Ap literal 0 HcmV?d00001 diff --git a/variables.tf b/variables.tf index ab2983d..216595c 100644 --- a/variables.tf +++ b/variables.tf @@ -1,9 +1,11 @@ # Required module inputs + variable "cluster_name" {} variable "cluster_identity_oidc_issuer" {} variable "cluster_identity_oidc_issuer_arn" {} # alb-ingress + variable "enabled" { type = bool } @@ -17,6 +19,7 @@ variable "ingress_class" { } # Helm + variable "helm_chart_name" { default = "aws-alb-ingress-controller" } @@ -38,6 +41,7 @@ variable "helm_repo_url" { } # K8S + variable "k8s_namespace" { default = "alb-ingress" description = "The k8s namespace in which the alb-ingress service account has been created" @@ -48,8 +52,7 @@ variable "k8s_service_account_name" { description = "The k8s alb-ingress service account name" } -#dependence variable binds all AWS resources allocated by -#this module. Dependent modules reference this variable variable "mod_dependency" { - default = null + default = null + description = "Dependence variable binds all AWS resources allocated by this module, dependent modules reference this variable" }