From 1758b1ac1455637abc3105ae4702043b6e5590db Mon Sep 17 00:00:00 2001
From: Tomas Balaz <32219885+tomas-balaz@users.noreply.github.com>
Date: Mon, 5 Sep 2022 11:17:48 +0200
Subject: [PATCH] Initial commit
---
.github/CODE_OF_CONDUCT.md | 133 ++++++
.github/CONTRIBUTING.md | 30 ++
.github/ISSUE_TEMPLATE/bug_report.yml | 108 +++++
.github/ISSUE_TEMPLATE/config.yml | 1 +
.github/ISSUE_TEMPLATE/feature_request.yml | 39 ++
.github/PULL_REQUEST_TEMPLATE.md | 21 +
.github/RELEASE_DRAFTER.yml | 19 +
.github/workflows/pre-commit.yml | 43 ++
.github/workflows/release-drafter.yml | 24 ++
.github/workflows/validate.yaml | 49 +++
.gitignore | 36 ++
.pre-commit-config.yaml | 33 ++
.secrets.baseline | 113 +++++
LICENSE | 201 +++++++++
README.md | 197 +++++++++
argo.tf | 86 ++++
examples/basic/README.md | 36 ++
examples/basic/main.tf | 94 +++++
examples/basic/providers.tf | 19 +
helm.tf | 63 +++
helm/argocd-application/.helmignore | 23 ++
helm/argocd-application/Chart.yaml | 18 +
.../argocd-application/templates/_helpers.tpl | 51 +++
.../templates/application.yaml | 19 +
helm/argocd-application/values.yaml | 2 +
iam.tf | 99 +++++
ll-logo.png | Bin 0 -> 12095 bytes
outputs.tf | 19 +
values.tf | 13 +
variables.tf | 389 ++++++++++++++++++
versions.tf | 22 +
31 files changed, 2000 insertions(+)
create mode 100644 .github/CODE_OF_CONDUCT.md
create mode 100644 .github/CONTRIBUTING.md
create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml
create mode 100644 .github/ISSUE_TEMPLATE/config.yml
create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml
create mode 100644 .github/PULL_REQUEST_TEMPLATE.md
create mode 100644 .github/RELEASE_DRAFTER.yml
create mode 100644 .github/workflows/pre-commit.yml
create mode 100644 .github/workflows/release-drafter.yml
create mode 100644 .github/workflows/validate.yaml
create mode 100644 .gitignore
create mode 100644 .pre-commit-config.yaml
create mode 100644 .secrets.baseline
create mode 100644 LICENSE
create mode 100644 README.md
create mode 100644 argo.tf
create mode 100644 examples/basic/README.md
create mode 100644 examples/basic/main.tf
create mode 100644 examples/basic/providers.tf
create mode 100644 helm.tf
create mode 100644 helm/argocd-application/.helmignore
create mode 100644 helm/argocd-application/Chart.yaml
create mode 100644 helm/argocd-application/templates/_helpers.tpl
create mode 100644 helm/argocd-application/templates/application.yaml
create mode 100644 helm/argocd-application/values.yaml
create mode 100644 iam.tf
create mode 100644 ll-logo.png
create mode 100644 outputs.tf
create mode 100644 values.tf
create mode 100644 variables.tf
create mode 100644 versions.tf
diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..58d3674
--- /dev/null
+++ b/.github/CODE_OF_CONDUCT.md
@@ -0,0 +1,133 @@
+
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+We as members, contributors, and leaders pledge to make participation in our
+community a harassment-free experience for everyone, regardless of age, body
+size, visible or invisible disability, ethnicity, sex characteristics, gender
+identity and expression, level of experience, education, socio-economic status,
+nationality, personal appearance, race, caste, color, religion, or sexual
+identity and orientation.
+
+We pledge to act and interact in ways that contribute to an open, welcoming,
+diverse, inclusive, and healthy community.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+* Demonstrating empathy and kindness toward other people
+* Being respectful of differing opinions, viewpoints, and experiences
+* Giving and gracefully accepting constructive feedback
+* Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+* Focusing on what is best not just for us as individuals, but for the overall
+ community
+
+Examples of unacceptable behavior include:
+
+* The use of sexualized language or imagery, and sexual attention or advances of
+ any kind
+* Trolling, insulting or derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or email address,
+ without their explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Enforcement Responsibilities
+
+Community leaders are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any behavior that they deem inappropriate, threatening, offensive,
+or harmful.
+
+Community leaders have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, and will communicate reasons for moderation
+decisions when appropriate.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+Examples of representing our community include using an official e-mail address,
+posting via an official social media account, or acting as an appointed
+representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the community leaders responsible for enforcement at
+info@lablabs.io.
+All complaints will be reviewed and investigated promptly and fairly.
+
+All community leaders are obligated to respect the privacy and security of the
+reporter of any incident.
+
+## Enforcement Guidelines
+
+Community leaders will follow these Community Impact Guidelines in determining
+the consequences for any action they deem in violation of this Code of Conduct:
+
+### 1. Correction
+
+**Community Impact**: Use of inappropriate language or other behavior deemed
+unprofessional or unwelcome in the community.
+
+**Consequence**: A private, written warning from community leaders, providing
+clarity around the nature of the violation and an explanation of why the
+behavior was inappropriate. A public apology may be requested.
+
+### 2. Warning
+
+**Community Impact**: A violation through a single incident or series of
+actions.
+
+**Consequence**: A warning with consequences for continued behavior. No
+interaction with the people involved, including unsolicited interaction with
+those enforcing the Code of Conduct, for a specified period of time. This
+includes avoiding interactions in community spaces as well as external channels
+like social media. Violating these terms may lead to a temporary or permanent
+ban.
+
+### 3. Temporary Ban
+
+**Community Impact**: A serious violation of community standards, including
+sustained inappropriate behavior.
+
+**Consequence**: A temporary ban from any sort of interaction or public
+communication with the community for a specified period of time. No public or
+private interaction with the people involved, including unsolicited interaction
+with those enforcing the Code of Conduct, is allowed during this period.
+Violating these terms may lead to a permanent ban.
+
+### 4. Permanent Ban
+
+**Community Impact**: Demonstrating a pattern of violation of community
+standards, including sustained inappropriate behavior, harassment of an
+individual, or aggression toward or disparagement of classes of individuals.
+
+**Consequence**: A permanent ban from any sort of public interaction within the
+community.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 2.1, available at
+[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
+
+Community Impact Guidelines were inspired by
+[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
+
+For answers to common questions about this code of conduct, see the FAQ at
+[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
+[https://www.contributor-covenant.org/translations][translations].
+
+[homepage]: https://www.contributor-covenant.org
+[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
+[Mozilla CoC]: https://github.com/mozilla/diversity
+[FAQ]: https://www.contributor-covenant.org/faq
+[translations]: https://www.contributor-covenant.org/translations
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
new file mode 100644
index 0000000..5249a56
--- /dev/null
+++ b/.github/CONTRIBUTING.md
@@ -0,0 +1,30 @@
+# Contributing
+
+When contributing to this repository, please first create an issue and link the PR with it.
+
+Please note we have a code of conduct, please follow it in all your interactions with the project.
+
+## Pull Request Process
+
+1. Update the README.md with details of changes including example hcl blocks and [example files](./examples) if appropriate.
+2. Run pre-commit hooks `pre-commit run -a`.
+3. Once all outstanding comments and checklist items have been addressed, your contribution will be merged! Merged PRs will be included in the next release. The terraform-aws-vpc maintainers take care of updating the CHANGELOG as they merge.
+
+## Checklists for contributions
+
+- [ ] Add [semantics prefix](#semantic-pull-requests) to your PR or Commits.
+- [ ] CI tests are passing
+- [ ] README.md has been updated after any changes. The variables and outputs in the README.md has been generated (using the `terraform_docs` pre-commit hook).
+- [ ] Run pre-commit hooks `pre-commit run -a`
+
+## Semantic Pull Requests
+
+Pull Requests or Commits must follow conventional specs below:
+
+- `ci:` Changes to our CI configuration files and scripts (example scopes: GitHub Actions)
+- `docs:` Documentation only changes
+- `feat:` A new feature
+- `fix:` A bug fix
+- `refactor:` A code change that neither fixes a bug nor adds a feature
+- `style:` Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
+- `test:` Adding missing tests or correcting existing tests
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 0000000..ad2fe05
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,108 @@
+---
+name: Bug report
+description: File a bug report
+title: "bug: "
+labels: bug
+
+body:
+- type: markdown
+ attributes:
+ value: >
+ **Thank you for wanting to report a bug!**
+
+ Verify first that your issue is not [already reported on
+ GitHub][issue search].
+
+ Also test if the latest release is affected too.
+
+- type: textarea
+ attributes:
+ label: Summary
+ description: Explain the problem briefly below.
+ placeholder: >-
+ When I try to do X with teraform module from the main branch on GitHub, Y
+ breaks in a way Z under the env E. Here are all the details I know
+ about this problem...
+ validations:
+ required: true
+
+- type: dropdown
+ attributes:
+ label: Issue Type
+ description: >
+ Please select the single available option in the drop-down.
+
+
+
+ Why?
+
+
+ We would do it by ourselves but unfortunatelly, the curent
+ edition of GitHub Issue Forms Alpha does not support this yet 🤷
+
+
+ _We will make it easier in the future, once GitHub
+ supports dropdown defaults. Promise!_
+
+
+ options:
+ - Bug Report
+ validations:
+ required: true
+
+- type: textarea
+ attributes:
+ label: Terraform Version
+ description: >-
+ Paste verbatim output from `terraform --version` below, under
+ the prompt line. Please don't wrap it with tripple backticks — your
+ whole input will be turned into a code snippet automatically.
+ render: console
+ placeholder: |
+ $ terraform --version
+ Terraform v1.1.4
+ on linux_amd64
+ + provider registry.terraform.io/cloudposse/utils v0.17.23
+ + provider registry.terraform.io/hashicorp/aws v4.13.0
+ + provider registry.terraform.io/hashicorp/helm v2.5.1
+ + provider registry.terraform.io/hashicorp/kubernetes v2.11.0
+ validations:
+ required: true
+
+- type: textarea
+ attributes:
+ label: Steps to Reproduce
+ description: |
+ Describe exactly how to reproduce the problem, using a minimal test-case.
+
+ **HINT:** You can paste https://gist.github.com links for larger files.
+ value: |
+
+ ```hcl (paste below)
+
+ ```
+ validations:
+ required: true
+
+- type: textarea
+ attributes:
+ label: Expected Results
+ description: >-
+ Describe what you expected to happen when running the steps above.
+ placeholder: >-
+ I expected X to happen because I assumed Y.
+ validations:
+ required: true
+
+- type: textarea
+ attributes:
+ label: Actual Results
+ description: |
+ Describe what actually happened.
+
+ Paste verbatim command output and don't wrap it with tripple backticks — your
+ whole input will be turned into a code snippet automatically.
+ render: console
+ placeholder: Terrafom command output...
+ validations:
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..0086358
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1 @@
+blank_issues_enabled: true
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 0000000..3b99f50
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,39 @@
+---
+name: Feature request
+description: Suggest an idea for this project
+title: "feature: "
+labels: enhancement
+
+body:
+- type: markdown
+ attributes:
+ value: >
+ **Thank you for wanting to suggest a feature!**
+
+ Please verify first that your idea is not [already requested on
+ GitHub][issue search].
+
+- type: textarea
+ attributes:
+ label: Summary
+ description: >
+ Describe the new feature/improvement you would like briefly below.
+
+ What's the problem this feature will solve?
+ What are you trying to do, that you are unable to achieve?
+
+ placeholder: >-
+ The new feature will improve...
+ validations:
+ required: true
+
+- type: dropdown
+ attributes:
+ label: Issue Type
+ description: >
+ Please select the single available option in the drop-down.
+
+ options:
+ - Feature Idea
+ validations:
+ required: true
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..f862b60
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,21 @@
+# Description
+
+
+
+## Type of change
+
+- [ ] A bug fix (PR prefix `fix`)
+- [ ] A new feature (PR prefix `feat`)
+- [ ] A code change that neither fixes a bug nor adds a feature (PR prefix `refactor`)
+- [ ] Adding missing tests or correcting existing tests (PR prefix `test`)
+- [ ] Changes that do not affect the meaning of the code like white-spaces, formatting, missing semi-colons, etc. (PR prefix `style`)
+- [ ] Changes to our CI configuration files and scripts (PR prefix `ci`)
+- [ ] Documentation only changes (PR prefix `docs`)
+
+## How Has This Been Tested?
+
+
diff --git a/.github/RELEASE_DRAFTER.yml b/.github/RELEASE_DRAFTER.yml
new file mode 100644
index 0000000..1ae725f
--- /dev/null
+++ b/.github/RELEASE_DRAFTER.yml
@@ -0,0 +1,19 @@
+name-template: 'v$RESOLVED_VERSION'
+tag-template: 'v$RESOLVED_VERSION'
+categories:
+ - title: 'Features'
+ labels:
+ - 'feature'
+ - 'enhancement'
+ - title: 'Bug Fixes'
+ labels:
+ - 'fix'
+ - 'bugfix'
+ - 'bug'
+ - title: 'Documentation'
+ label: 'documentation'
+change-template: '- $TITLE, by @$AUTHOR (#$NUMBER)'
+template: |
+ # What's changed
+
+ $CHANGES
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
new file mode 100644
index 0000000..7c0b1ec
--- /dev/null
+++ b/.github/workflows/pre-commit.yml
@@ -0,0 +1,43 @@
+name: pre-commit
+
+on:
+ workflow_dispatch:
+ pull_request:
+ branches:
+ - main
+ - master
+
+env:
+ TERRAFORM_DOCS_VERSION: "v0.16.0"
+ TFLINT_VERSION: "v0.36.2"
+
+jobs:
+ pre-commit:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+
+ - name: Install additional pre-commit hooks
+ shell: bash
+ run: |
+ echo "########### Install Checkov ####################"
+ pip install checkov
+
+ echo "########### Install Terraform-docs #############"
+ wget https://github.com/terraform-docs/terraform-docs/releases/download/${{ env.TERRAFORM_DOCS_VERSION }}/terraform-docs-${{ env.TERRAFORM_DOCS_VERSION }}-linux-amd64.tar.gz
+ tar xvzf terraform-docs-${{ env.TERRAFORM_DOCS_VERSION }}-linux-amd64.tar.gz
+ mkdir -p ~/terraform-docs/bin/
+ install terraform-docs ~/terraform-docs/bin/
+ echo '~/terraform-docs/bin/' >> $GITHUB_PATH
+
+ echo "########### Install Terraform-linters ##########"
+ 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/
+ echo '~/tflint/bin/' >> $GITHUB_PATH
+ install tflint ~/tflint/bin/
+ ~/tflint/bin/tflint --init
+
+ - name: Run pre-commit
+ uses: pre-commit/action@v2.0.3
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
new file mode 100644
index 0000000..7cae11f
--- /dev/null
+++ b/.github/workflows/release-drafter.yml
@@ -0,0 +1,24 @@
+name: Release Drafter
+
+permissions:
+ contents: write
+ pull-requests: read
+
+on:
+ push:
+ branches:
+ - main
+ - master
+
+ pull_request:
+ types: [opened, reopened, synchronize, labeled]
+
+jobs:
+ update_release_draft:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: release-drafter/release-drafter@v5
+ with:
+ config-name: RELEASE_DRAFTER.yml
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml
new file mode 100644
index 0000000..2d3f60e
--- /dev/null
+++ b/.github/workflows/validate.yaml
@@ -0,0 +1,49 @@
+name: Terraform validate
+
+on:
+ workflow_dispatch:
+ pull_request:
+ branches:
+ - main
+ - master
+
+jobs:
+ versionExtract:
+ name: Extract min/max Terraform versions
+ runs-on: ubuntu-20.04
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Extract Terraform min/max versions
+ id: minMax
+ uses: clowdhaus/terraform-min-max@main
+ with:
+ directory: .
+ outputs:
+ minVersion: ${{ steps.minMax.outputs.minVersion }}
+ maxVersion: ${{ steps.minMax.outputs.maxVersion }}
+
+ terraform-validate:
+ runs-on: ubuntu-20.04
+ needs: versionExtract
+ strategy:
+ matrix:
+ tf_ver:
+ - ${{ needs.versionExtract.outputs.minVersion }}
+ - ${{ needs.versionExtract.outputs.maxVersion }}
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: hashicorp/setup-terraform@v2
+ with:
+ terraform_version: ${{ matrix.tf_ver }}
+
+ - name: Terraform Init
+ id: init
+ run: terraform init
+
+ - name: Terraform Validate
+ id: validate
+ run: terraform validate
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dd32dc8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,36 @@
+# Local .terraform directories
+**/.terraform/*
+
+# .tfstate files
+*.tfstate
+*.tfstate.*
+
+# Crash log files
+crash.log
+
+# Exclude all .tfvars files, which are likely to contain sentitive data, such as
+# password, private keys, and other secrets. These should not be part of version
+# control as they are data points which are potentially sensitive and subject
+# to change depending on the environment.
+#
+*.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*
+
+# Ignore CLI configuration files
+.terraformrc
+terraform.rc
+
+.terraform.lock.hcl
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..4b7f891
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,33 @@
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.2.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/antonbabenko/pre-commit-terraform
+ rev: v1.71.0
+ hooks:
+ - id: terraform_fmt
+ - id: terraform_tflint
+ - id: terraform_validate
+ - id: terraform_checkov
+ - id: terraform_docs
+ args:
+ - '--args=--hide providers --sort-by required'
+
+ - repo: https://github.com/pecigonzalo/pre-commit-terraform-vars
+ rev: v1.0.0
+ hooks:
+ - id: terraform-vars
+
+ - repo: https://github.com/Yelp/detect-secrets
+ rev: v1.3.0
+ hooks:
+ - id: detect-secrets
+ args: ['--baseline', '.secrets.baseline']
+ exclude: terraform.tfstate
diff --git a/.secrets.baseline b/.secrets.baseline
new file mode 100644
index 0000000..eaf7047
--- /dev/null
+++ b/.secrets.baseline
@@ -0,0 +1,113 @@
+{
+ "version": "1.3.0",
+ "plugins_used": [
+ {
+ "name": "ArtifactoryDetector"
+ },
+ {
+ "name": "AWSKeyDetector"
+ },
+ {
+ "name": "AzureStorageKeyDetector"
+ },
+ {
+ "name": "Base64HighEntropyString",
+ "limit": 4.5
+ },
+ {
+ "name": "BasicAuthDetector"
+ },
+ {
+ "name": "CloudantDetector"
+ },
+ {
+ "name": "GitHubTokenDetector"
+ },
+ {
+ "name": "HexHighEntropyString",
+ "limit": 3.0
+ },
+ {
+ "name": "IbmCloudIamDetector"
+ },
+ {
+ "name": "IbmCosHmacDetector"
+ },
+ {
+ "name": "JwtTokenDetector"
+ },
+ {
+ "name": "KeywordDetector",
+ "keyword_exclude": ""
+ },
+ {
+ "name": "MailchimpDetector"
+ },
+ {
+ "name": "NpmDetector"
+ },
+ {
+ "name": "PrivateKeyDetector"
+ },
+ {
+ "name": "SendGridDetector"
+ },
+ {
+ "name": "SlackDetector"
+ },
+ {
+ "name": "SoftlayerDetector"
+ },
+ {
+ "name": "SquareOAuthDetector"
+ },
+ {
+ "name": "StripeDetector"
+ },
+ {
+ "name": "TwilioKeyDetector"
+ }
+ ],
+ "filters_used": [
+ {
+ "path": "detect_secrets.filters.allowlist.is_line_allowlisted"
+ },
+ {
+ "path": "detect_secrets.filters.common.is_baseline_file",
+ "filename": ".secrets.baseline"
+ },
+ {
+ "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
+ "min_level": 2
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_indirect_reference"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_likely_id_string"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_lock_file"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_potential_uuid"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_sequential_string"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_swagger_file"
+ },
+ {
+ "path": "detect_secrets.filters.heuristic.is_templated_secret"
+ }
+ ],
+ "results": {},
+ "generated_at": "2022-07-28T10:50:47Z"
+}
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..9e712fa
--- /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 [2022] [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
new file mode 100644
index 0000000..7579872
--- /dev/null
+++ b/README.md
@@ -0,0 +1,197 @@
+# AWS EKS <$addon-name> Terraform module
+
+[![labyrinth labs logo](ll-logo.png)](https://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
+
+---
+
+[![Terraform validate](https://github.com/lablabs/terraform-aws-eks-<$addon-name>/actions/workflows/validate.yaml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-<$addon-name>/actions/workflows/validate.yaml)
+[![pre-commit](https://github.com/lablabs/terraform-aws-<$addon-name>/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-<$addon-name>/actions/workflows/pre-commit.yml)
+
+## Description
+
+A terraform module to deploy the <$addon-name> on Amazon EKS cluster.
+
+## Related Projects
+
+Check out other [terraform kubernetes addons](https://github.com/orgs/lablabs/repositories?q=terraform-aws-eks&type=public&language=&sort=).
+
+## Deployment methods
+
+### Helm
+Deploy helm chart by helm (default method, set `enabled = true`)
+
+### Argo kubernetes
+Deploy helm chart as argo application by kubernetes manifest (set `enabled = true` and `argo_enabled = true`)
+
+### Argo helm
+When deploying with ArgoCD application, Kubernetes terraform provider requires access to Kubernetes cluster API during plan time. This introduces potential issue when you want to deploy the cluster with this addon at the same time, during the same Terraform run.
+
+To overcome this issue, the module deploys the ArgoCD application object using the Helm provider, which does not require API access during plan. If you want to deploy the application using this workaround, you can set the `argo_helm_enabled` variable to `true`.
+
+Create helm release resource and deploy it as argo application (set `enabled = true`, `argo_enabled = true` and `argo_helm_enabled = true`)
+
+
+
+
+
+## Examples
+
+See [Basic example](examples/basic/README.md) for further information.
+
+
+
+## Requirements
+
+| Name | Version |
+|------|---------|
+| [terraform](#requirement\_terraform) | >= 1.0 |
+| [aws](#requirement\_aws) | >= 4.19.0 |
+| [helm](#requirement\_helm) | >= 2.6.0 |
+| [kubernetes](#requirement\_kubernetes) | >= 2.11.0 |
+| [utils](#requirement\_utils) | >= 0.17.0 |
+
+## Modules
+
+No modules.
+
+## Resources
+
+| Name | Type |
+|------|------|
+| [aws_iam_policy.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
+| [aws_iam_role.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
+| [aws_iam_role_policy_attachment.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
+| [aws_iam_role_policy_attachment.this_additional](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
+| [helm_release.argo_application](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
+| [helm_release.this](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
+| [kubernetes_manifest.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
+| [aws_iam_policy_document.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
+| [aws_iam_policy_document.this_assume](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
+| [aws_iam_policy_document.this_irsa](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
+| [utils_deep_merge_yaml.argo_helm_values](https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/deep_merge_yaml) | data source |
+| [utils_deep_merge_yaml.values](https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/deep_merge_yaml) | data source |
+
+## Inputs
+
+| Name | Description | Type | Default | Required |
+|------|-------------|------|---------|:--------:|
+| [cluster\_identity\_oidc\_issuer](#input\_cluster\_identity\_oidc\_issuer) | The OIDC Identity issuer for the cluster | `string` | n/a | yes |
+| [cluster\_identity\_oidc\_issuer\_arn](#input\_cluster\_identity\_oidc\_issuer\_arn) | The OIDC Identity issuer ARN for the cluster that can be used to associate IAM roles with a service account | `string` | n/a | yes |
+| [argo\_apiversion](#input\_argo\_apiversion) | ArgoCD Appliction apiVersion | `string` | `"argoproj.io/v1alpha1"` | no |
+| [argo\_destination\_server](#input\_argo\_destination\_server) | Destination server for ArgoCD Application | `string` | `"https://kubernetes.default.svc"` | no |
+| [argo\_enabled](#input\_argo\_enabled) | If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release | `bool` | `false` | no |
+| [argo\_helm\_enabled](#input\_argo\_helm\_enabled) | If set to true, the ArgoCD Application manifest will be deployed using Kubernetes provider as a Helm release. Otherwise it'll be deployed as a Kubernetes manifest. See Readme for more info | `bool` | `false` | no |
+| [argo\_helm\_values](#input\_argo\_helm\_values) | Value overrides to use when deploying argo application object with helm | `string` | `""` | no |
+| [argo\_info](#input\_argo\_info) | ArgoCD info manifest parameter | `list` |
[
{
"name": "terraform",
"value": "true"
}
]
| no |
+| [argo\_kubernetes\_manifest\_computed\_fields](#input\_argo\_kubernetes\_manifest\_computed\_fields) | List of paths of fields to be handled as "computed". The user-configured value for the field will be overridden by any different value returned by the API after apply. | `list(string)` | [
"metadata.labels",
"metadata.annotations"
]
| no |
+| [argo\_kubernetes\_manifest\_field\_manager\_force\_conflicts](#input\_argo\_kubernetes\_manifest\_field\_manager\_force\_conflicts) | Forcibly override any field manager conflicts when applying the kubernetes manifest resource | `bool` | `false` | no |
+| [argo\_kubernetes\_manifest\_field\_manager\_name](#input\_argo\_kubernetes\_manifest\_field\_manager\_name) | The name of the field manager to use when applying the kubernetes manifest resource. Defaults to Terraform | `string` | `"Terraform"` | no |
+| [argo\_kubernetes\_manifest\_wait\_fields](#input\_argo\_kubernetes\_manifest\_wait\_fields) | A map of fields and a corresponding regular expression with a pattern to wait for. The provider will wait until the field matches the regular expression. Use * for any value. | `map(string)` | `{}` | no |
+| [argo\_metadata](#input\_argo\_metadata) | ArgoCD Application metadata configuration. Override or create additional metadata parameters | `map` | {
"finalizers": [
"resources-finalizer.argocd.argoproj.io"
]
}
| no |
+| [argo\_namespace](#input\_argo\_namespace) | Namespace to deploy ArgoCD application CRD to | `string` | `"argo"` | no |
+| [argo\_project](#input\_argo\_project) | ArgoCD Application project | `string` | `"default"` | no |
+| [argo\_spec](#input\_argo\_spec) | ArgoCD Application spec configuration. Override or create additional spec parameters | `map` | `{}` | no |
+| [argo\_sync\_policy](#input\_argo\_sync\_policy) | ArgoCD syncPolicy manifest parameter | `map` | `{}` | no |
+| [enabled](#input\_enabled) | Variable indicating whether deployment is enabled | `bool` | `true` | no |
+| [helm\_atomic](#input\_helm\_atomic) | If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used | `bool` | `false` | no |
+| [helm\_chart\_name](#input\_helm\_chart\_name) | Helm chart name to be installed | `string` | `"<$addon-name>"` | no |
+| [helm\_chart\_version](#input\_helm\_chart\_version) | Version of the Helm chart | `string` | `""` | no |
+| [helm\_cleanup\_on\_fail](#input\_helm\_cleanup\_on\_fail) | Allow deletion of new resources created in this helm upgrade when upgrade fails | `bool` | `false` | no |
+| [helm\_create\_namespace](#input\_helm\_create\_namespace) | Create the namespace if it does not yet exist | `bool` | `true` | no |
+| [helm\_dependency\_update](#input\_helm\_dependency\_update) | Runs helm dependency update before installing the chart | `bool` | `false` | no |
+| [helm\_description](#input\_helm\_description) | Set helm release description attribute (visible in the history) | `string` | `""` | no |
+| [helm\_devel](#input\_helm\_devel) | Use helm chart development versions, too. Equivalent to version '>0.0.0-0'. If version is set, this is ignored | `bool` | `false` | no |
+| [helm\_disable\_openapi\_validation](#input\_helm\_disable\_openapi\_validation) | If set, the installation process will not validate rendered helm templates against the Kubernetes OpenAPI Schema | `bool` | `false` | no |
+| [helm\_disable\_webhooks](#input\_helm\_disable\_webhooks) | Prevent helm chart hooks from running | `bool` | `false` | no |
+| [helm\_force\_update](#input\_helm\_force\_update) | Force helm resource update through delete/recreate if needed | `bool` | `false` | no |
+| [helm\_keyring](#input\_helm\_keyring) | Location of public keys used for verification. Used only if helm\_package\_verify is true | `string` | `"~/.gnupg/pubring.gpg"` | no |
+| [helm\_lint](#input\_helm\_lint) | Run the helm chart linter during the plan | `bool` | `false` | no |
+| [helm\_package\_verify](#input\_helm\_package\_verify) | Verify the package before installing it. Helm uses a provenance file to verify the integrity of the chart; this must be hosted alongside the chart | `bool` | `false` | no |
+| [helm\_postrender](#input\_helm\_postrender) | Value block with a path to a binary file to run after helm renders the manifest which can alter the manifest contents | `map(any)` | `{}` | no |
+| [helm\_recreate\_pods](#input\_helm\_recreate\_pods) | Perform pods restart during helm upgrade/rollback | `bool` | `false` | no |
+| [helm\_release\_max\_history](#input\_helm\_release\_max\_history) | Maximum number of release versions stored per release | `number` | `0` | no |
+| [helm\_release\_name](#input\_helm\_release\_name) | Helm release name | `string` | `"<$addon-name>"` | no |
+| [helm\_render\_subchart\_notes](#input\_helm\_render\_subchart\_notes) | If set, render helm subchart notes along with the parent | `bool` | `true` | no |
+| [helm\_replace](#input\_helm\_replace) | Re-use the given name of helm release, only if that name is a deleted release which remains in the history. This is unsafe in production | `bool` | `false` | no |
+| [helm\_repo\_ca\_file](#input\_helm\_repo\_ca\_file) | Helm repositories cert file | `string` | `""` | no |
+| [helm\_repo\_cert\_file](#input\_helm\_repo\_cert\_file) | Helm repositories cert file | `string` | `""` | no |
+| [helm\_repo\_key\_file](#input\_helm\_repo\_key\_file) | Helm repositories cert key file | `string` | `""` | no |
+| [helm\_repo\_password](#input\_helm\_repo\_password) | Password for HTTP basic authentication against the helm repository | `string` | `""` | no |
+| [helm\_repo\_url](#input\_helm\_repo\_url) | Helm repository | `string` | `""` | no |
+| [helm\_repo\_username](#input\_helm\_repo\_username) | Username for HTTP basic authentication against the helm repository | `string` | `""` | no |
+| [helm\_reset\_values](#input\_helm\_reset\_values) | When upgrading, reset the values to the ones built into the helm chart | `bool` | `false` | no |
+| [helm\_reuse\_values](#input\_helm\_reuse\_values) | When upgrading, reuse the last helm release's values and merge in any overrides. If 'helm\_reset\_values' is specified, this is ignored | `bool` | `false` | no |
+| [helm\_set\_sensitive](#input\_helm\_set\_sensitive) | Value block with custom sensitive values to be merged with the values yaml that won't be exposed in the plan's diff | `map(any)` | `{}` | no |
+| [helm\_skip\_crds](#input\_helm\_skip\_crds) | If set, no CRDs will be installed before helm release | `bool` | `false` | no |
+| [helm\_timeout](#input\_helm\_timeout) | Time in seconds to wait for any individual kubernetes operation (like Jobs for hooks) | `number` | `300` | no |
+| [helm\_wait](#input\_helm\_wait) | Will wait until all helm release resources are in a ready state before marking the release as successful. It will wait for as long as timeout | `bool` | `false` | no |
+| [helm\_wait\_for\_jobs](#input\_helm\_wait\_for\_jobs) | If wait is enabled, will wait until all helm Jobs have been completed before marking the release as successful. It will wait for as long as timeout | `bool` | `false` | no |
+| [irsa\_additional\_policies](#input\_irsa\_additional\_policies) | Map of the additional policies to be attached to default role. Where key is arbitrary id and value is policy arn. | `map(string)` | `{}` | no |
+| [irsa\_assume\_role\_arn](#input\_irsa\_assume\_role\_arn) | Assume role arn. Assume role must be enabled. | `string` | `""` | no |
+| [irsa\_assume\_role\_enabled](#input\_irsa\_assume\_role\_enabled) | Whether IRSA is allowed to assume role defined by irsa\_assume\_role\_arn. | `bool` | `false` | no |
+| [irsa\_policy\_enabled](#input\_irsa\_policy\_enabled) | Whether to create opinionated policy to allow operations on specified zones in `policy_allowed_zone_ids`. | `bool` | `true` | no |
+| [irsa\_role\_create](#input\_irsa\_role\_create) | Whether to create IRSA role and annotate service account | `bool` | `true` | no |
+| [irsa\_role\_name\_prefix](#input\_irsa\_role\_name\_prefix) | The IRSA role name prefix for vector | `string` | `"<$addon-name>-irsa"` | no |
+| [irsa\_tags](#input\_irsa\_tags) | IRSA resources tags | `map(string)` | `{}` | no |
+| [namespace](#input\_namespace) | The K8s namespace in which the <$addon-name> service account has been created | `string` | `"<$addon-name>"` | no |
+| [rbac\_create](#input\_rbac\_create) | Whether to create and use RBAC resources | `bool` | `true` | no |
+| [service\_account\_create](#input\_service\_account\_create) | Whether to create Service Account | `bool` | `true` | no |
+| [service\_account\_name](#input\_service\_account\_name) | The k8s <$addon-name> service account name | `string` | `"<$addon-name>"` | no |
+| [settings](#input\_settings) | Additional helm sets which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/<$addon-name> | `map(any)` | `{}` | no |
+| [values](#input\_values) | Additional yaml encoded values which will be passed to the Helm chart, see https://hub.helm.sh/charts/stable/<$addon-name> | `string` | `""` | no |
+
+## Outputs
+
+| Name | Description |
+|------|-------------|
+| [helm\_release\_application\_metadata](#output\_helm\_release\_application\_metadata) | Argo application helm release attributes |
+| [helm\_release\_metadata](#output\_helm\_release\_metadata) | Helm release attributes |
+| [iam\_role\_attributes](#output\_iam\_role\_attributes) | <$addon-name> IAM role atributes |
+| [kubernetes\_application\_attributes](#output\_kubernetes\_application\_attributes) | Argo kubernetes manifest attributes |
+
+
+## Contributing and reporting issues
+
+Feel free to create an issue in this repository if you have questions, suggestions or feature requests.
+
+### Validation, linters and pull-requests
+
+We want to provide high quality code and modules. For this reason we are using
+several [pre-commit hooks](.pre-commit-config.yaml) and
+[GitHub Actions workflows](.github/workflows/). A pull-request to the
+main branch will trigger these validations and lints automatically. Please
+check your code before you will create pull-requests. See
+[pre-commit documentation](https://pre-commit.com/) and
+[GitHub Actions documentation](https://docs.github.com/en/actions) for further
+details.
+
+
+## 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/argo.tf b/argo.tf
new file mode 100644
index 0000000..a952837
--- /dev/null
+++ b/argo.tf
@@ -0,0 +1,86 @@
+locals {
+ argo_application_metadata = {
+ "labels" : try(var.argo_metadata.labels, {}),
+ "annotations" : try(var.argo_metadata.annotations, {}),
+ "finalizers" : try(var.argo_metadata.finalizers, [])
+ }
+ argo_application_values = {
+ "project" : var.argo_project
+ "source" : {
+ "repoURL" : var.helm_repo_url
+ "chart" : var.helm_chart_name
+ "targetRevision" : var.helm_chart_version
+ "helm" : {
+ "releaseName" : var.helm_release_name
+ "parameters" : [for k, v in var.settings : tomap({ "forceString" : true, "name" : k, "value" : v })]
+ "values" : var.enabled ? data.utils_deep_merge_yaml.values[0].output : ""
+ }
+ }
+ "destination" : {
+ "server" : var.argo_destination_server
+ "namespace" : var.namespace
+ }
+ "syncPolicy" : var.argo_sync_policy
+ "info" : var.argo_info
+ }
+}
+
+data "utils_deep_merge_yaml" "argo_helm_values" {
+ count = var.enabled && var.argo_enabled && var.argo_helm_enabled ? 1 : 0
+ input = compact([
+ yamlencode({
+ "apiVersion" : var.argo_apiversion
+ }),
+ yamlencode({
+ "spec" : local.argo_application_values
+ }),
+ yamlencode({
+ "spec" : var.argo_spec
+ }),
+ yamlencode(
+ local.argo_application_metadata
+ )
+ ])
+}
+
+
+resource "helm_release" "argo_application" {
+ count = var.enabled && var.argo_enabled && var.argo_helm_enabled ? 1 : 0
+
+ chart = "${path.module}/helm/argocd-application"
+ name = var.helm_release_name
+ namespace = var.argo_namespace
+
+ values = [
+ data.utils_deep_merge_yaml.argo_helm_values[0].output,
+ var.argo_helm_values
+ ]
+}
+
+
+resource "kubernetes_manifest" "this" {
+ count = var.enabled && var.argo_enabled && !var.argo_helm_enabled ? 1 : 0
+ manifest = {
+ "apiVersion" = var.argo_apiversion
+ "kind" = "Application"
+ "metadata" = merge(
+ local.argo_application_metadata,
+ { "name" = var.helm_release_name },
+ { "namespace" = var.argo_namespace },
+ )
+ "spec" = merge(
+ local.argo_application_values,
+ var.argo_spec
+ )
+ }
+ computed_fields = var.argo_kubernetes_manifest_computed_fields
+
+ field_manager {
+ name = var.argo_kubernetes_manifest_field_manager_name
+ force_conflicts = var.argo_kubernetes_manifest_field_manager_force_conflicts
+ }
+
+ wait {
+ fields = var.argo_kubernetes_manifest_wait_fields
+ }
+}
diff --git a/examples/basic/README.md b/examples/basic/README.md
new file mode 100644
index 0000000..b676807
--- /dev/null
+++ b/examples/basic/README.md
@@ -0,0 +1,36 @@
+# Basic example
+
+The code in this example shows how to use the module with basic configuration and minimal set of other resources.
+
+
+## Requirements
+
+No requirements.
+
+## Modules
+
+| Name | Source | Version |
+|------|--------|---------|
+| [addon\_installation\_argo\_helm](#module\_addon\_installation\_argo\_helm) | ../../ | n/a |
+| [addon\_installation\_argo\_kubernetes](#module\_addon\_installation\_argo\_kubernetes) | ../../ | n/a |
+| [addon\_installation\_disabled](#module\_addon\_installation\_disabled) | ../../ | n/a |
+| [addon\_installation\_helm](#module\_addon\_installation\_helm) | ../../ | n/a |
+| [eks\_cluster](#module\_eks\_cluster) | cloudposse/eks-cluster/aws | 2.3.0 |
+| [eks\_node\_group](#module\_eks\_node\_group) | cloudposse/eks-node-group/aws | 2.4.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 3.14.2 |
+
+## Resources
+
+| Name | Type |
+|------|------|
+| [aws_eks_cluster.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster) | data source |
+| [aws_eks_cluster_auth.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster_auth) | data source |
+
+## Inputs
+
+No inputs.
+
+## Outputs
+
+No outputs.
+
diff --git a/examples/basic/main.tf b/examples/basic/main.tf
new file mode 100644
index 0000000..d28191c
--- /dev/null
+++ b/examples/basic/main.tf
@@ -0,0 +1,94 @@
+module "vpc" {
+ source = "terraform-aws-modules/vpc/aws"
+ version = "3.14.2"
+
+ name = "cluster-autoscaler-vpc"
+ cidr = "10.0.0.0/16"
+ azs = ["eu-central-1a", "eu-central-1b"]
+ public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]
+ enable_nat_gateway = true
+}
+
+module "eks_cluster" {
+ source = "cloudposse/eks-cluster/aws"
+ version = "2.3.0"
+
+ region = "eu-central-1"
+ subnet_ids = module.vpc.public_subnets
+ vpc_id = module.vpc.vpc_id
+ name = "basic-example"
+}
+
+module "eks_node_group" {
+ source = "cloudposse/eks-node-group/aws"
+ version = "2.4.0"
+
+ cluster_name = module.eks_cluster.eks_cluster_id
+ instance_types = ["t3.medium"]
+ subnet_ids = module.vpc.public_subnets
+ min_size = 1
+ desired_size = 1
+ max_size = 2
+ depends_on = [module.eks_cluster.kubernetes_config_map_id]
+}
+
+module "addon_installation_disabled" {
+ source = "../../"
+
+ enabled = false
+
+ cluster_identity_oidc_issuer = module.eks_cluster.eks_cluster_identity_oidc_issuer
+ cluster_identity_oidc_issuer_arn = module.eks_cluster.eks_cluster_identity_oidc_issuer_arn
+}
+
+module "addon_installation_helm" {
+ source = "../../"
+
+ enabled = true
+ argo_enabled = false
+ argo_helm_enabled = false
+
+ cluster_identity_oidc_issuer = module.eks_cluster.eks_cluster_identity_oidc_issuer
+ cluster_identity_oidc_issuer_arn = module.eks_cluster.eks_cluster_identity_oidc_issuer_arn
+
+ values = yamlencode({
+ # insert sample values here
+ })
+}
+
+module "addon_installation_argo_kubernetes" {
+ source = "../../"
+
+ enabled = true
+ argo_enabled = true
+ argo_helm_enabled = false
+
+ cluster_identity_oidc_issuer = module.eks_cluster.eks_cluster_identity_oidc_issuer
+ cluster_identity_oidc_issuer_arn = module.eks_cluster.eks_cluster_identity_oidc_issuer_arn
+
+ values = yamlencode({
+ # insert sample values here
+ })
+
+ argo_sync_policy = {
+ "automated" : {}
+ "syncOptions" = ["CreateNamespace=true"]
+ }
+}
+
+
+module "addon_installation_argo_helm" {
+ source = "../../"
+
+ enabled = true
+ argo_enabled = true
+ argo_helm_enabled = true
+
+ cluster_identity_oidc_issuer = module.eks_cluster.eks_cluster_identity_oidc_issuer
+ cluster_identity_oidc_issuer_arn = module.eks_cluster.eks_cluster_identity_oidc_issuer_arn
+
+ argo_sync_policy = {
+ "automated" : {}
+ "syncOptions" = ["CreateNamespace=true"]
+ }
+}
diff --git a/examples/basic/providers.tf b/examples/basic/providers.tf
new file mode 100644
index 0000000..e8369d1
--- /dev/null
+++ b/examples/basic/providers.tf
@@ -0,0 +1,19 @@
+provider "aws" {
+ region = "eu-central-1"
+}
+
+data "aws_eks_cluster" "this" {
+ name = module.eks_cluster.eks_cluster_id
+}
+
+data "aws_eks_cluster_auth" "this" {
+ name = module.eks_cluster.eks_cluster_id
+}
+
+provider "helm" {
+ kubernetes {
+ host = data.aws_eks_cluster.this.endpoint
+ token = data.aws_eks_cluster_auth.this.token
+ cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority.0.data)
+ }
+}
diff --git a/helm.tf b/helm.tf
new file mode 100644
index 0000000..2592884
--- /dev/null
+++ b/helm.tf
@@ -0,0 +1,63 @@
+resource "helm_release" "this" {
+ count = var.enabled && !var.argo_enabled ? 1 : 0
+ chart = var.helm_chart_name
+ create_namespace = var.helm_create_namespace
+ namespace = var.namespace
+ name = var.helm_release_name
+ version = var.helm_chart_version
+ repository = var.helm_repo_url
+
+ repository_key_file = var.helm_repo_key_file
+ repository_cert_file = var.helm_repo_cert_file
+ repository_ca_file = var.helm_repo_ca_file
+ repository_username = var.helm_repo_username
+ repository_password = var.helm_repo_password
+ devel = var.helm_devel
+ verify = var.helm_package_verify
+ keyring = var.helm_keyring
+ timeout = var.helm_timeout
+ disable_webhooks = var.helm_disable_webhooks
+ reset_values = var.helm_reset_values
+ reuse_values = var.helm_reuse_values
+ force_update = var.helm_force_update
+ recreate_pods = var.helm_recreate_pods
+ cleanup_on_fail = var.helm_cleanup_on_fail
+ max_history = var.helm_release_max_history
+ atomic = var.helm_atomic
+ wait = var.helm_wait
+ wait_for_jobs = var.helm_wait_for_jobs
+ skip_crds = var.helm_skip_crds
+ render_subchart_notes = var.helm_render_subchart_notes
+ disable_openapi_validation = var.helm_disable_openapi_validation
+ dependency_update = var.helm_dependency_update
+ replace = var.helm_replace
+ description = var.helm_description
+ lint = var.helm_lint
+
+ values = [
+ data.utils_deep_merge_yaml.values[0].output
+ ]
+
+ dynamic "set" {
+ for_each = var.settings
+ content {
+ name = set.key
+ value = set.value
+ }
+ }
+
+ dynamic "set_sensitive" {
+ for_each = var.helm_set_sensitive
+ content {
+ name = set_sensitive.key
+ value = set_sensitive.value
+ }
+ }
+
+ dynamic "postrender" {
+ for_each = var.helm_postrender
+ content {
+ binary_path = postrender.value
+ }
+ }
+}
diff --git a/helm/argocd-application/.helmignore b/helm/argocd-application/.helmignore
new file mode 100644
index 0000000..0e8a0eb
--- /dev/null
+++ b/helm/argocd-application/.helmignore
@@ -0,0 +1,23 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*.orig
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
diff --git a/helm/argocd-application/Chart.yaml b/helm/argocd-application/Chart.yaml
new file mode 100644
index 0000000..b450f61
--- /dev/null
+++ b/helm/argocd-application/Chart.yaml
@@ -0,0 +1,18 @@
+apiVersion: v2
+name: argocd-application
+description: Helm wrapper for deploying ArgoCD application object
+
+# A chart can be either an 'application' or a 'library' chart.
+#
+# Application charts are a collection of templates that can be packaged into versioned archives
+# to be deployed.
+#
+# Library charts provide useful utilities or functions for the chart developer. They're included as
+# a dependency of application charts to inject those utilities and functions into the rendering
+# pipeline. Library charts do not define any templates and therefore cannot be deployed.
+type: application
+
+# This is the chart version. This version number should be incremented each time you make changes
+# to the chart and its templates, including the app version.
+# Versions are expected to follow Semantic Versioning (https://semver.org/)
+version: 0.1.0
diff --git a/helm/argocd-application/templates/_helpers.tpl b/helm/argocd-application/templates/_helpers.tpl
new file mode 100644
index 0000000..6dac3de
--- /dev/null
+++ b/helm/argocd-application/templates/_helpers.tpl
@@ -0,0 +1,51 @@
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "argocd_application.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Create a default fully qualified app name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "argocd_application.fullname" -}}
+{{- if .Values.fullnameOverride }}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- $name := default .Chart.Name .Values.nameOverride }}
+{{- if contains $name .Release.Name }}
+{{- .Release.Name | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- printf "%s" .Release.Name | trunc 63 | trimSuffix "-" }}
+{{- end }}
+{{- end }}
+{{- end }}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "argocd_application.chart" -}}
+{{- printf "%s" .Chart.Name | replace "+" "_" | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Common labels
+*/}}
+{{- define "argocd_application.labels" -}}
+helm.sh/chart: {{ include "argocd_application.chart" . }}
+{{ include "argocd_application.selectorLabels" . }}
+{{- if .Chart.AppVersion }}
+app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
+{{- end }}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "argocd_application.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "argocd_application.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- end }}
diff --git a/helm/argocd-application/templates/application.yaml b/helm/argocd-application/templates/application.yaml
new file mode 100644
index 0000000..3117c37
--- /dev/null
+++ b/helm/argocd-application/templates/application.yaml
@@ -0,0 +1,19 @@
+apiVersion: {{ .Values.apiVersion }}
+kind: Application
+metadata:
+ name: {{ include "argocd_application.fullname" . }}
+ labels:
+ {{- include "argocd_application.labels" . | nindent 4 }}
+ {{- if .Values.labels }}
+ {{ toYaml .Values.labels | nindent 4 }}
+ {{- end }}
+ annotations:
+ {{- if .Values.annotations }}
+ {{ toYaml .Values.annotations | indent 4 }}
+ {{- end }}
+ finalizers:
+ {{- if .Values.finalizers }}
+ {{ toYaml .Values.finalizers | indent 4 }}
+ {{- end }}
+spec:
+ {{ toYaml .Values.spec | nindent 2 }}
diff --git a/helm/argocd-application/values.yaml b/helm/argocd-application/values.yaml
new file mode 100644
index 0000000..552d6da
--- /dev/null
+++ b/helm/argocd-application/values.yaml
@@ -0,0 +1,2 @@
+nameOverride: ""
+fullnameOverride: ""
diff --git a/iam.tf b/iam.tf
new file mode 100644
index 0000000..bcb0e09
--- /dev/null
+++ b/iam.tf
@@ -0,0 +1,99 @@
+locals {
+ irsa_role_create = var.enabled && var.rbac_create && var.service_account_create && var.irsa_role_create
+}
+
+data "aws_iam_policy_document" "this" {
+ count = local.irsa_role_create && var.irsa_policy_enabled && !var.irsa_assume_role_enabled ? 1 : 0
+
+ statement {
+ sid = "Autoscaling"
+
+ actions = [
+ "autoscaling:DescribeAutoScalingGroups",
+ "autoscaling:DescribeAutoScalingInstances",
+ "autoscaling:DescribeLaunchConfigurations",
+ "autoscaling:DescribeTags",
+ "autoscaling:SetDesiredCapacity",
+ "autoscaling:TerminateInstanceInAutoScalingGroup",
+ "ec2:DescribeLaunchTemplateVersions",
+ "ec2:DescribeInstanceTypes"
+ ] # checkov:skip=CKV_AWS_111
+
+ resources = [
+ "*",
+ ]
+
+ effect = "Allow"
+ }
+
+}
+
+data "aws_iam_policy_document" "this_assume" {
+ count = local.irsa_role_create && var.irsa_assume_role_enabled ? 1 : 0
+
+ statement {
+ sid = "AllowAssume<$addon-name>Role"
+ effect = "Allow"
+ actions = [
+ "sts:AssumeRole"
+ ]
+ resources = [
+ var.irsa_assume_role_arn
+ ]
+ }
+}
+
+resource "aws_iam_policy" "this" {
+ count = local.irsa_role_create && (var.irsa_policy_enabled || var.irsa_assume_role_enabled) ? 1 : 0
+
+ name = "${var.irsa_role_name_prefix}-${var.helm_chart_name}"
+ path = "/"
+ description = "Policy for <$addon-name> service"
+ policy = var.irsa_assume_role_enabled ? data.aws_iam_policy_document.this_assume[0].json : data.aws_iam_policy_document.this[0].json
+
+ tags = var.irsa_tags
+}
+
+data "aws_iam_policy_document" "this_irsa" {
+ count = local.irsa_role_create ? 1 : 0
+
+ statement {
+ actions = ["sts:AssumeRoleWithWebIdentity"]
+
+ principals {
+ type = "Federated"
+ identifiers = [var.cluster_identity_oidc_issuer_arn]
+ }
+
+ condition {
+ test = "StringEquals"
+ variable = "${replace(var.cluster_identity_oidc_issuer, "https://", "")}:sub"
+
+ values = [
+ "system:serviceaccount:${var.namespace}:${var.service_account_name}",
+ ]
+ }
+
+ effect = "Allow"
+ }
+}
+
+resource "aws_iam_role" "this" {
+ count = local.irsa_role_create ? 1 : 0
+ name = "${var.irsa_role_name_prefix}-${var.helm_chart_name}"
+ assume_role_policy = data.aws_iam_policy_document.this_irsa[0].json
+ tags = var.irsa_tags
+}
+
+resource "aws_iam_role_policy_attachment" "this" {
+ count = local.irsa_role_create ? 1 : 0
+ role = aws_iam_role.this[0].name
+ policy_arn = aws_iam_policy.this[0].arn
+}
+
+resource "aws_iam_role_policy_attachment" "this_additional" {
+ for_each = local.irsa_role_create ? var.irsa_additional_policies : {}
+
+ role = aws_iam_role.this[0].name
+ policy_arn = each.value
+}
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_3Ox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|Jl2mbgj>VKaKnIDUe)|tG5L!EOZXG~qu;Pd9M7)>&2{=AdX
z0JSVm)hx9*51mjeS1Vc(%6u$+qRC1uCc_eB+*J$sjgDQceT$Tb;02DB5xt3$;Y1!8
zwN9298d}kM3HYhJu3nm(erqddws}9caPk^%^j9yFEO`XC@ChYqF(v0tqRph-zNY*{@QxhXY
z#fJZthODHkRKX;J#czW9bMq*;P-yQFlN&hH+_SZ;5O1@IBSEImHb-{L?fL@H!9#Oj
zU*KHJ5BPueIBT?iUUTTc3dX~Mo315%{h`O~)A#$PiGL`}kLXrOieV%U$4UakDf4~u
z%Hk(KRClN-uu==1|2|ltJn%6Q`Y}Mp`yY5Gqv5r*@F*yx+`6QOATw>*TN{IzK5Z1lYcz74#`i`v}o
zj68Ky8XKAj
zSECh5l%;ECbHv*7%$AM2twxl%j3rn|`@2I;t@58S3!Nmo3N_~$St_k%>1zb2O6Ts`
z&G{V<9`8J%GJ*_$sk`Q=0LhZ*h^8va8>AU+OYOy>2h22Q^gN1ErKv0}EGW>>0)_V+
zeokz&nO)5&kp+34n{xh|#0m85om`bJ}I{XM9Z!6+QqR*UV#OO%Mf{o4)z$a4lX7y$qQ9RL2wK>tJ<
r3IHHO`5!C(w|4)z`hWYg&;5k^G7wQ_5aKEP-$EG)Me%A;gP{KdKD|Ap
literal 0
HcmV?d00001
diff --git a/outputs.tf b/outputs.tf
new file mode 100644
index 0000000..42898ab
--- /dev/null
+++ b/outputs.tf
@@ -0,0 +1,19 @@
+output "helm_release_metadata" {
+ description = "Helm release attributes"
+ value = try(helm_release.this[0].metadata, {})
+}
+
+output "helm_release_application_metadata" {
+ description = "Argo application helm release attributes"
+ value = try(helm_release.argo_application[0].metadata, {})
+}
+
+output "kubernetes_application_attributes" {
+ description = "Argo kubernetes manifest attributes"
+ value = try(kubernetes_manifest.this, {})
+}
+
+output "iam_role_attributes" {
+ description = "<$addon-name> IAM role atributes"
+ value = try(aws_iam_role.this[0], {})
+}
diff --git a/values.tf b/values.tf
new file mode 100644
index 0000000..a30740a
--- /dev/null
+++ b/values.tf
@@ -0,0 +1,13 @@
+locals {
+ values_default = yamlencode({
+ # add default values here
+ })
+}
+
+data "utils_deep_merge_yaml" "values" {
+ count = var.enabled ? 1 : 0
+ input = compact([
+ local.values_default,
+ var.values
+ ])
+}
diff --git a/variables.tf b/variables.tf
new file mode 100644
index 0000000..57d0500
--- /dev/null
+++ b/variables.tf
@@ -0,0 +1,389 @@
+variable "enabled" {
+ type = bool
+ default = true
+ description = "Variable indicating whether deployment is enabled"
+}
+
+variable "cluster_identity_oidc_issuer" {
+ type = string
+ description = "The OIDC Identity issuer for the cluster"
+}
+
+variable "cluster_identity_oidc_issuer_arn" {
+ type = string
+ description = "The OIDC Identity issuer ARN for the cluster that can be used to associate IAM roles with a service account"
+}
+
+# ================ common variables (required) ================
+
+variable "helm_chart_name" {
+ type = string
+ default = "<$addon-name>"
+ description = "Helm chart name to be installed"
+}
+
+variable "helm_chart_version" {
+ type = string
+ default = ""
+ description = "Version of the Helm chart"
+}
+
+variable "helm_release_name" {
+ type = string
+ default = "<$addon-name>"
+ description = "Helm release name"
+}
+variable "helm_repo_url" {
+ type = string
+ default = ""
+ description = "Helm repository"
+}
+
+variable "helm_create_namespace" {
+ type = bool
+ default = true
+ description = "Create the namespace if it does not yet exist"
+}
+
+variable "namespace" {
+ type = string
+ default = "<$addon-name>"
+ description = "The K8s namespace in which the <$addon-name> service account has been created"
+}
+
+variable "settings" {
+ type = map(any)
+ default = {}
+ description = "Additional helm sets which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/<$addon-name>"
+}
+
+variable "values" {
+ type = string
+ default = ""
+ description = "Additional yaml encoded values which will be passed to the Helm chart, see https://hub.helm.sh/charts/stable/<$addon-name>"
+}
+
+# ================ IRSA variables (optional) ================
+
+variable "rbac_create" {
+ type = bool
+ default = true
+ description = "Whether to create and use RBAC resources"
+}
+
+variable "service_account_create" {
+ type = bool
+ default = true
+ description = "Whether to create Service Account"
+}
+
+variable "irsa_role_create" {
+ type = bool
+ default = true
+ description = "Whether to create IRSA role and annotate service account"
+}
+
+variable "irsa_policy_enabled" {
+ type = bool
+ default = true
+ description = "Whether to create opinionated policy to allow operations on specified zones in `policy_allowed_zone_ids`."
+}
+
+variable "irsa_assume_role_enabled" {
+ type = bool
+ default = false
+ description = "Whether IRSA is allowed to assume role defined by irsa_assume_role_arn."
+}
+
+variable "irsa_assume_role_arn" {
+ default = ""
+ description = "Assume role arn. Assume role must be enabled."
+}
+
+variable "irsa_additional_policies" {
+ type = map(string)
+ default = {}
+ description = "Map of the additional policies to be attached to default role. Where key is arbitrary id and value is policy arn."
+}
+
+variable "irsa_role_name_prefix" {
+ type = string
+ default = "<$addon-name>-irsa"
+ description = "The IRSA role name prefix for vector"
+}
+
+variable "irsa_tags" {
+ type = map(string)
+ default = {}
+ description = "IRSA resources tags"
+}
+
+variable "service_account_name" {
+ default = "<$addon-name>"
+ description = "The k8s <$addon-name> service account name"
+}
+
+# ================ argo variables (required) ================
+
+variable "argo_namespace" {
+ type = string
+ default = "argo"
+ description = "Namespace to deploy ArgoCD application CRD to"
+}
+
+variable "argo_enabled" {
+ type = bool
+ default = false
+ description = "If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release"
+}
+
+variable "argo_helm_enabled" {
+ type = bool
+ default = false
+ description = "If set to true, the ArgoCD Application manifest will be deployed using Kubernetes provider as a Helm release. Otherwise it'll be deployed as a Kubernetes manifest. See Readme for more info"
+}
+
+variable "argo_destination_server" {
+ type = string
+ default = "https://kubernetes.default.svc"
+ description = "Destination server for ArgoCD Application"
+}
+
+variable "argo_project" {
+ type = string
+ default = "default"
+ description = "ArgoCD Application project"
+}
+
+variable "argo_info" {
+ default = [{
+ "name" = "terraform"
+ "value" = "true"
+ }]
+ description = "ArgoCD info manifest parameter"
+}
+
+variable "argo_sync_policy" {
+ description = "ArgoCD syncPolicy manifest parameter"
+ default = {}
+}
+
+variable "argo_metadata" {
+ default = {
+ "finalizers" : [
+ "resources-finalizer.argocd.argoproj.io"
+ ]
+ }
+ description = "ArgoCD Application metadata configuration. Override or create additional metadata parameters"
+}
+
+variable "argo_apiversion" {
+ default = "argoproj.io/v1alpha1"
+ description = "ArgoCD Appliction apiVersion"
+}
+
+variable "argo_spec" {
+ default = {}
+ description = "ArgoCD Application spec configuration. Override or create additional spec parameters"
+}
+
+variable "argo_helm_values" {
+ type = string
+ default = ""
+ description = "Value overrides to use when deploying argo application object with helm"
+}
+
+# ================ argo kubernetes manifest variables (required) ================
+
+variable "argo_kubernetes_manifest_computed_fields" {
+ type = list(string)
+ default = ["metadata.labels", "metadata.annotations"]
+ description = "List of paths of fields to be handled as \"computed\". The user-configured value for the field will be overridden by any different value returned by the API after apply."
+}
+
+variable "argo_kubernetes_manifest_field_manager_name" {
+ default = "Terraform"
+ description = "The name of the field manager to use when applying the kubernetes manifest resource. Defaults to Terraform"
+}
+
+variable "argo_kubernetes_manifest_field_manager_force_conflicts" {
+ type = bool
+ default = false
+ description = "Forcibly override any field manager conflicts when applying the kubernetes manifest resource"
+}
+
+variable "argo_kubernetes_manifest_wait_fields" {
+ type = map(string)
+ default = {}
+ description = "A map of fields and a corresponding regular expression with a pattern to wait for. The provider will wait until the field matches the regular expression. Use * for any value."
+}
+
+# ================ helm release variables (required) ================
+
+variable "helm_repo_key_file" {
+ type = string
+ default = ""
+ description = "Helm repositories cert key file"
+}
+
+variable "helm_repo_cert_file" {
+ type = string
+ default = ""
+ description = "Helm repositories cert file"
+}
+
+variable "helm_repo_ca_file" {
+ type = string
+ default = ""
+ description = "Helm repositories cert file"
+}
+
+variable "helm_repo_username" {
+ type = string
+ default = ""
+ description = "Username for HTTP basic authentication against the helm repository"
+}
+
+variable "helm_repo_password" {
+ type = string
+ default = ""
+ description = "Password for HTTP basic authentication against the helm repository"
+}
+
+variable "helm_devel" {
+ type = bool
+ default = false
+ description = "Use helm chart development versions, too. Equivalent to version '>0.0.0-0'. If version is set, this is ignored"
+}
+
+variable "helm_package_verify" {
+ type = bool
+ default = false
+ description = "Verify the package before installing it. Helm uses a provenance file to verify the integrity of the chart; this must be hosted alongside the chart"
+}
+
+variable "helm_keyring" {
+ type = string
+ default = "~/.gnupg/pubring.gpg"
+ description = "Location of public keys used for verification. Used only if helm_package_verify is true"
+}
+
+variable "helm_timeout" {
+ type = number
+ default = 300
+ description = "Time in seconds to wait for any individual kubernetes operation (like Jobs for hooks)"
+}
+
+variable "helm_disable_webhooks" {
+ type = bool
+ default = false
+ description = "Prevent helm chart hooks from running"
+}
+
+variable "helm_reset_values" {
+ type = bool
+ default = false
+ description = "When upgrading, reset the values to the ones built into the helm chart"
+}
+
+variable "helm_reuse_values" {
+ type = bool
+ default = false
+ description = "When upgrading, reuse the last helm release's values and merge in any overrides. If 'helm_reset_values' is specified, this is ignored"
+}
+
+variable "helm_force_update" {
+ type = bool
+ default = false
+ description = "Force helm resource update through delete/recreate if needed"
+}
+
+variable "helm_recreate_pods" {
+ type = bool
+ default = false
+ description = "Perform pods restart during helm upgrade/rollback"
+}
+
+variable "helm_cleanup_on_fail" {
+ type = bool
+ default = false
+ description = "Allow deletion of new resources created in this helm upgrade when upgrade fails"
+}
+
+variable "helm_release_max_history" {
+ type = number
+ default = 0
+ description = "Maximum number of release versions stored per release"
+}
+
+variable "helm_atomic" {
+ type = bool
+ default = false
+ description = "If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used"
+}
+
+variable "helm_wait" {
+ type = bool
+ default = false
+ description = "Will wait until all helm release resources are in a ready state before marking the release as successful. It will wait for as long as timeout"
+}
+
+variable "helm_wait_for_jobs" {
+ type = bool
+ default = false
+ description = "If wait is enabled, will wait until all helm Jobs have been completed before marking the release as successful. It will wait for as long as timeout"
+}
+
+variable "helm_skip_crds" {
+ type = bool
+ default = false
+ description = "If set, no CRDs will be installed before helm release"
+}
+
+variable "helm_render_subchart_notes" {
+ type = bool
+ default = true
+ description = "If set, render helm subchart notes along with the parent"
+}
+
+variable "helm_disable_openapi_validation" {
+ type = bool
+ default = false
+ description = "If set, the installation process will not validate rendered helm templates against the Kubernetes OpenAPI Schema"
+}
+
+variable "helm_dependency_update" {
+ type = bool
+ default = false
+ description = "Runs helm dependency update before installing the chart"
+}
+
+variable "helm_replace" {
+ type = bool
+ default = false
+ description = "Re-use the given name of helm release, only if that name is a deleted release which remains in the history. This is unsafe in production"
+}
+
+variable "helm_description" {
+ type = string
+ default = ""
+ description = "Set helm release description attribute (visible in the history)"
+}
+
+variable "helm_lint" {
+ type = bool
+ default = false
+ description = "Run the helm chart linter during the plan"
+}
+
+variable "helm_set_sensitive" {
+ type = map(any)
+ default = {}
+ description = "Value block with custom sensitive values to be merged with the values yaml that won't be exposed in the plan's diff"
+}
+
+variable "helm_postrender" {
+ type = map(any)
+ default = {}
+ description = "Value block with a path to a binary file to run after helm renders the manifest which can alter the manifest contents"
+}
diff --git a/versions.tf b/versions.tf
new file mode 100644
index 0000000..ea8c3a1
--- /dev/null
+++ b/versions.tf
@@ -0,0 +1,22 @@
+terraform {
+ required_version = ">= 1.0"
+
+ required_providers {
+ aws = {
+ source = "hashicorp/aws"
+ version = ">= 4.19.0"
+ }
+ kubernetes = {
+ source = "hashicorp/kubernetes"
+ version = ">= 2.11.0"
+ }
+ helm = {
+ source = "hashicorp/helm"
+ version = ">= 2.6.0"
+ }
+ utils = {
+ source = "cloudposse/utils"
+ version = ">= 0.17.0"
+ }
+ }
+}