├── .editorconfig ├── .github └── workflows │ ├── lock.yml │ ├── pr-title.yml │ ├── pre-commit.yml │ ├── release.yml │ └── stale-actions.yaml ├── .gitignore ├── .pre-commit-config.yaml ├── .releaserc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docs └── UPGRADE-5.0.md ├── examples ├── README.md ├── complete │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ ├── pattern.txt │ ├── variables.tf │ └── versions.tf └── simple │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ ├── variables.tf │ └── versions.tf ├── main.tf ├── modules ├── log_forwarder │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ ├── policy.tmpl │ ├── variables.tf │ └── versions.tf ├── rds_enhanced_monitoring_forwarder │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ ├── policy.tmpl │ ├── variables.tf │ ├── vendored_archives │ │ ├── 3.0.0.zip │ │ ├── 3.1.0.zip │ │ ├── 3.10.0.zip │ │ ├── 3.100.0.zip │ │ ├── 3.103.0.zip │ │ ├── 3.105.0.zip │ │ ├── 3.106.0.zip │ │ ├── 3.108.0.zip │ │ ├── 3.11.0.zip │ │ ├── 3.110.0.zip │ │ ├── 3.111.0.zip │ │ ├── 3.112.0.zip │ │ ├── 3.113.0.zip │ │ ├── 3.114.0.zip │ │ ├── 3.115.0.zip │ │ ├── 3.116.0.zip │ │ ├── 3.117.0.zip │ │ ├── 3.118.0.zip │ │ ├── 3.12.0.zip │ │ ├── 3.120.1.zip │ │ ├── 3.121.0.zip │ │ ├── 3.122.0.zip │ │ ├── 3.123.0.zip │ │ ├── 3.124.0.zip │ │ ├── 3.127.0.zip │ │ ├── 3.128.0.zip │ │ ├── 3.129.0.zip │ │ ├── 3.13.0.zip │ │ ├── 3.130.0.zip │ │ ├── 3.14.0.zip │ │ ├── 3.15.0.zip │ │ ├── 3.16.0.zip │ │ ├── 3.16.1.zip │ │ ├── 3.16.2.zip │ │ ├── 3.16.3.zip │ │ ├── 3.16.4.zip │ │ ├── 3.17.0.zip │ │ ├── 3.18.0.zip │ │ ├── 3.18.1.zip │ │ ├── 3.18.2.zip │ │ ├── 3.19.0.zip │ │ ├── 3.2.0.zip │ │ ├── 3.20.0.zip │ │ ├── 3.21.0.zip │ │ ├── 3.21.1.zip │ │ ├── 3.21.2.zip │ │ ├── 3.21.3.zip │ │ ├── 3.21.4.zip │ │ ├── 3.21.5.zip │ │ ├── 3.22.0.zip │ │ ├── 3.23.0.zip │ │ ├── 3.24.0.zip │ │ ├── 3.25.0.zip │ │ ├── 3.26.0.zip │ │ ├── 3.27.0.zip │ │ ├── 3.28.0.zip │ │ ├── 3.28.1.zip │ │ ├── 3.28.2.zip │ │ ├── 3.28.3.zip │ │ ├── 3.28.4.zip │ │ ├── 3.28.5.zip │ │ ├── 3.29.0.zip │ │ ├── 3.3.0.zip │ │ ├── 3.30.0.zip │ │ ├── 3.31.0.zip │ │ ├── 3.32.0.zip │ │ ├── 3.33.0.zip │ │ ├── 3.34.0.zip │ │ ├── 3.35.0.zip │ │ ├── 3.36.0.zip │ │ ├── 3.37.0.zip │ │ ├── 3.38.0.zip │ │ ├── 3.39.0.zip │ │ ├── 3.39.1.zip │ │ ├── 3.4.0.zip │ │ ├── 3.40.0.zip │ │ ├── 3.41.0.zip │ │ ├── 3.42.0.zip │ │ ├── 3.43.0.zip │ │ ├── 3.44.0.zip │ │ ├── 3.45.0.zip │ │ ├── 3.46.0.zip │ │ ├── 3.47.0.zip │ │ ├── 3.48.0.zip │ │ ├── 3.49.0.zip │ │ ├── 3.5.0.zip │ │ ├── 3.50.0.zip │ │ ├── 3.51.0.zip │ │ ├── 3.52.0.zip │ │ ├── 3.53.0.zip │ │ ├── 3.55.0.zip │ │ ├── 3.58.0.zip │ │ ├── 3.59.0.zip │ │ ├── 3.6.0.zip │ │ ├── 3.60.0.zip │ │ ├── 3.61.0.zip │ │ ├── 3.62.0.zip │ │ ├── 3.64.0.zip │ │ ├── 3.65.0.zip │ │ ├── 3.66.0.zip │ │ ├── 3.69.0.zip │ │ ├── 3.7.0.zip │ │ ├── 3.71.0.zip │ │ ├── 3.73.0.zip │ │ ├── 3.74.0.zip │ │ ├── 3.75.0.zip │ │ ├── 3.76.0.zip │ │ ├── 3.77.0.zip │ │ ├── 3.79.0.zip │ │ ├── 3.8.0.zip │ │ ├── 3.80.0.zip │ │ ├── 3.81.0.zip │ │ ├── 3.83.0.zip │ │ ├── 3.86.0.zip │ │ ├── 3.87.0.zip │ │ ├── 3.88.0.zip │ │ ├── 3.9.0.zip │ │ ├── 3.91.0.zip │ │ ├── 3.92.0.zip │ │ ├── 3.95.0.zip │ │ ├── 3.96.0.zip │ │ ├── 3.97.0.zip │ │ ├── 3.98.0.zip │ │ └── 3.99.0.zip │ └── versions.tf └── vpc_flow_log_forwarder │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ ├── policy.tmpl │ ├── variables.tf │ ├── vendored_archives │ ├── 3.0.0.zip │ ├── 3.1.0.zip │ ├── 3.10.0.zip │ ├── 3.100.0.zip │ ├── 3.103.0.zip │ ├── 3.105.0.zip │ ├── 3.106.0.zip │ ├── 3.108.0.zip │ ├── 3.11.0.zip │ ├── 3.110.0.zip │ ├── 3.111.0.zip │ ├── 3.112.0.zip │ ├── 3.113.0.zip │ ├── 3.114.0.zip │ ├── 3.115.0.zip │ ├── 3.116.0.zip │ ├── 3.117.0.zip │ ├── 3.118.0.zip │ ├── 3.12.0.zip │ ├── 3.120.1.zip │ ├── 3.121.0.zip │ ├── 3.122.0.zip │ ├── 3.123.0.zip │ ├── 3.124.0.zip │ ├── 3.127.0.zip │ ├── 3.128.0.zip │ ├── 3.129.0.zip │ ├── 3.13.0.zip │ ├── 3.130.0.zip │ ├── 3.14.0.zip │ ├── 3.15.0.zip │ ├── 3.16.0.zip │ ├── 3.16.1.zip │ ├── 3.16.2.zip │ ├── 3.16.3.zip │ ├── 3.16.4.zip │ ├── 3.17.0.zip │ ├── 3.18.0.zip │ ├── 3.18.1.zip │ ├── 3.18.2.zip │ ├── 3.19.0.zip │ ├── 3.2.0.zip │ ├── 3.20.0.zip │ ├── 3.21.0.zip │ ├── 3.21.1.zip │ ├── 3.21.2.zip │ ├── 3.21.3.zip │ ├── 3.21.4.zip │ ├── 3.21.5.zip │ ├── 3.22.0.zip │ ├── 3.23.0.zip │ ├── 3.24.0.zip │ ├── 3.25.0.zip │ ├── 3.26.0.zip │ ├── 3.27.0.zip │ ├── 3.28.0.zip │ ├── 3.28.1.zip │ ├── 3.28.2.zip │ ├── 3.28.3.zip │ ├── 3.28.4.zip │ ├── 3.28.5.zip │ ├── 3.29.0.zip │ ├── 3.3.0.zip │ ├── 3.30.0.zip │ ├── 3.31.0.zip │ ├── 3.32.0.zip │ ├── 3.33.0.zip │ ├── 3.34.0.zip │ ├── 3.35.0.zip │ ├── 3.36.0.zip │ ├── 3.37.0.zip │ ├── 3.38.0.zip │ ├── 3.39.0.zip │ ├── 3.39.1.zip │ ├── 3.4.0.zip │ ├── 3.40.0.zip │ ├── 3.41.0.zip │ ├── 3.42.0.zip │ ├── 3.43.0.zip │ ├── 3.44.0.zip │ ├── 3.45.0.zip │ ├── 3.46.0.zip │ ├── 3.47.0.zip │ ├── 3.48.0.zip │ ├── 3.49.0.zip │ ├── 3.5.0.zip │ ├── 3.50.0.zip │ ├── 3.51.0.zip │ ├── 3.52.0.zip │ ├── 3.53.0.zip │ ├── 3.55.0.zip │ ├── 3.58.0.zip │ ├── 3.59.0.zip │ ├── 3.6.0.zip │ ├── 3.60.0.zip │ ├── 3.61.0.zip │ ├── 3.62.0.zip │ ├── 3.64.0.zip │ ├── 3.65.0.zip │ ├── 3.66.0.zip │ ├── 3.69.0.zip │ ├── 3.7.0.zip │ ├── 3.71.0.zip │ ├── 3.73.0.zip │ ├── 3.74.0.zip │ ├── 3.75.0.zip │ ├── 3.76.0.zip │ ├── 3.77.0.zip │ ├── 3.79.0.zip │ ├── 3.8.0.zip │ ├── 3.80.0.zip │ ├── 3.81.0.zip │ ├── 3.83.0.zip │ ├── 3.86.0.zip │ ├── 3.87.0.zip │ ├── 3.88.0.zip │ ├── 3.9.0.zip │ ├── 3.91.0.zip │ ├── 3.92.0.zip │ ├── 3.95.0.zip │ ├── 3.96.0.zip │ ├── 3.97.0.zip │ ├── 3.98.0.zip │ └── 3.99.0.zip │ └── versions.tf ├── outputs.tf ├── variables.tf ├── vendor.sh └── versions.tf /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | # Uses editorconfig to maintain consistent coding styles 3 | 4 | # top-most EditorConfig file 5 | root = true 6 | 7 | # Unix-style newlines with a newline ending every file 8 | [*] 9 | charset = utf-8 10 | end_of_line = lf 11 | indent_size = 2 12 | indent_style = space 13 | insert_final_newline = true 14 | max_line_length = 80 15 | trim_trailing_whitespace = true 16 | 17 | [*.{tf,tfvars}] 18 | indent_size = 2 19 | indent_style = space 20 | 21 | [*.md] 22 | max_line_length = 0 23 | trim_trailing_whitespace = false 24 | 25 | [Makefile] 26 | tab_width = 2 27 | indent_style = tab 28 | 29 | [COMMIT_EDITMSG] 30 | max_line_length = 0 31 | -------------------------------------------------------------------------------- /.github/workflows/lock.yml: -------------------------------------------------------------------------------- 1 | name: 'Lock Threads' 2 | 3 | on: 4 | schedule: 5 | - cron: '50 1 * * *' 6 | 7 | jobs: 8 | lock: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: dessant/lock-threads@v5 12 | with: 13 | github-token: ${{ secrets.GITHUB_TOKEN }} 14 | issue-comment: > 15 | I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues. 16 | If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. 17 | issue-inactive-days: '30' 18 | pr-comment: > 19 | I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues. 20 | If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. 21 | pr-inactive-days: '30' 22 | -------------------------------------------------------------------------------- /.github/workflows/pr-title.yml: -------------------------------------------------------------------------------- 1 | name: 'Validate PR title' 2 | 3 | on: 4 | pull_request_target: 5 | types: 6 | - opened 7 | - edited 8 | - synchronize 9 | 10 | jobs: 11 | main: 12 | name: Validate PR title 13 | runs-on: ubuntu-latest 14 | steps: 15 | # Please look up the latest version from 16 | # https://github.com/amannn/action-semantic-pull-request/releases 17 | - uses: amannn/action-semantic-pull-request@v5.5.3 18 | env: 19 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 20 | with: 21 | # Configure which types are allowed. 22 | # Default: https://github.com/commitizen/conventional-commit-types 23 | types: | 24 | fix 25 | feat 26 | docs 27 | ci 28 | chore 29 | # Configure that a scope must always be provided. 30 | requireScope: false 31 | # Configure additional validation for the subject based on a regex. 32 | # This example ensures the subject starts with an uppercase character. 33 | subjectPattern: ^[A-Z].+$ 34 | # If `subjectPattern` is configured, you can use this property to override 35 | # the default error message that is shown when the pattern doesn't match. 36 | # The variables `subject` and `title` can be used within the message. 37 | subjectPatternError: | 38 | The subject "{subject}" found in the pull request title "{title}" 39 | didn't match the configured pattern. Please ensure that the subject 40 | starts with an uppercase character. 41 | # For work-in-progress PRs you can typically use draft pull requests 42 | # from Github. However, private repositories on the free plan don't have 43 | # this option and therefore this action allows you to opt-in to using the 44 | # special "[WIP]" prefix to indicate this state. This will avoid the 45 | # validation of the PR title and the pull request checks remain pending. 46 | # Note that a second check will be reported if this is enabled. 47 | wip: true 48 | # When using "Squash and merge" on a PR with only one commit, GitHub 49 | # will suggest using that commit message instead of the PR title for the 50 | # merge commit, and it's easy to commit this by mistake. Enable this option 51 | # to also validate the commit message for one commit PRs. 52 | validateSingleCommit: false 53 | -------------------------------------------------------------------------------- /.github/workflows/pre-commit.yml: -------------------------------------------------------------------------------- 1 | name: Pre-Commit 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - main 7 | - master 8 | 9 | env: 10 | TERRAFORM_DOCS_VERSION: v0.19.0 11 | TFLINT_VERSION: v0.53.0 12 | 13 | jobs: 14 | collectInputs: 15 | name: Collect workflow inputs 16 | runs-on: ubuntu-latest 17 | outputs: 18 | directories: ${{ steps.dirs.outputs.directories }} 19 | steps: 20 | - name: Checkout 21 | uses: actions/checkout@v4 22 | 23 | - name: Get root directories 24 | id: dirs 25 | uses: clowdhaus/terraform-composite-actions/directories@v1.9.0 26 | 27 | preCommitMinVersions: 28 | name: Min TF pre-commit 29 | needs: collectInputs 30 | runs-on: ubuntu-latest 31 | strategy: 32 | matrix: 33 | directory: ${{ fromJson(needs.collectInputs.outputs.directories) }} 34 | steps: 35 | # https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 36 | - name: Delete huge unnecessary tools folder 37 | run: | 38 | rm -rf /opt/hostedtoolcache/CodeQL 39 | rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk 40 | rm -rf /opt/hostedtoolcache/Ruby 41 | rm -rf /opt/hostedtoolcache/go 42 | 43 | - name: Checkout 44 | uses: actions/checkout@v4 45 | 46 | - name: Terraform min/max versions 47 | id: minMax 48 | uses: clowdhaus/terraform-min-max@v1.3.1 49 | with: 50 | directory: ${{ matrix.directory }} 51 | 52 | - name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }} 53 | # Run only validate pre-commit check on min version supported 54 | if: ${{ matrix.directory != '.' }} 55 | uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1 56 | with: 57 | terraform-version: ${{ steps.minMax.outputs.minVersion }} 58 | tflint-version: ${{ env.TFLINT_VERSION }} 59 | args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*' 60 | 61 | - name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }} 62 | # Run only validate pre-commit check on min version supported 63 | if: ${{ matrix.directory == '.' }} 64 | uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1 65 | with: 66 | terraform-version: ${{ steps.minMax.outputs.minVersion }} 67 | tflint-version: ${{ env.TFLINT_VERSION }} 68 | args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)' 69 | 70 | preCommitMaxVersion: 71 | name: Max TF pre-commit 72 | runs-on: ubuntu-latest 73 | needs: collectInputs 74 | steps: 75 | # https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 76 | - name: Delete huge unnecessary tools folder 77 | run: | 78 | rm -rf /opt/hostedtoolcache/CodeQL 79 | rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk 80 | rm -rf /opt/hostedtoolcache/Ruby 81 | rm -rf /opt/hostedtoolcache/go 82 | 83 | - name: Checkout 84 | uses: actions/checkout@v4 85 | with: 86 | ref: ${{ github.event.pull_request.head.ref }} 87 | repository: ${{github.event.pull_request.head.repo.full_name}} 88 | 89 | - name: Terraform min/max versions 90 | id: minMax 91 | uses: clowdhaus/terraform-min-max@v1.3.1 92 | 93 | - name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }} 94 | uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1 95 | with: 96 | terraform-version: ${{ steps.minMax.outputs.maxVersion }} 97 | tflint-version: ${{ env.TFLINT_VERSION }} 98 | terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }} 99 | install-hcledit: true 100 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: 7 | - main 8 | - master 9 | paths: 10 | - '**/*.tpl' 11 | - '**/*.py' 12 | - '**/*.tf' 13 | - '.github/workflows/release.yml' 14 | 15 | jobs: 16 | release: 17 | name: Release 18 | runs-on: ubuntu-latest 19 | # Skip running release workflow on forks 20 | if: github.repository_owner == 'terraform-aws-modules' 21 | steps: 22 | - name: Checkout 23 | uses: actions/checkout@v4 24 | with: 25 | persist-credentials: false 26 | fetch-depth: 0 27 | 28 | - name: Release 29 | uses: cycjimmy/semantic-release-action@v4 30 | with: 31 | semantic_version: 23.0.2 32 | extra_plugins: | 33 | @semantic-release/changelog@6.0.3 34 | @semantic-release/git@10.0.1 35 | conventional-changelog-conventionalcommits@7.0.2 36 | env: 37 | GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} 38 | -------------------------------------------------------------------------------- /.github/workflows/stale-actions.yaml: -------------------------------------------------------------------------------- 1 | name: 'Mark or close stale issues and PRs' 2 | on: 3 | schedule: 4 | - cron: '0 0 * * *' 5 | 6 | jobs: 7 | stale: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/stale@v9 11 | with: 12 | repo-token: ${{ secrets.GITHUB_TOKEN }} 13 | # Staling issues and PR's 14 | days-before-stale: 30 15 | stale-issue-label: stale 16 | stale-pr-label: stale 17 | stale-issue-message: | 18 | This issue has been automatically marked as stale because it has been open 30 days 19 | with no activity. Remove stale label or comment or this issue will be closed in 10 days 20 | stale-pr-message: | 21 | This PR has been automatically marked as stale because it has been open 30 days 22 | with no activity. Remove stale label or comment or this PR will be closed in 10 days 23 | # Not stale if have this labels or part of milestone 24 | exempt-issue-labels: bug,wip,on-hold 25 | exempt-pr-labels: bug,wip,on-hold 26 | exempt-all-milestones: true 27 | # Close issue operations 28 | # Label will be automatically removed if the issues are no longer closed nor locked. 29 | days-before-close: 10 30 | delete-branch: true 31 | close-issue-message: This issue was automatically closed because of stale in 10 days 32 | close-pr-message: This PR was automatically closed because of stale in 10 days 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Local .terraform directories 2 | **/.terraform/* 3 | 4 | # Terraform lockfile 5 | .terraform.lock.hcl 6 | 7 | # .tfstate files 8 | *.tfstate 9 | *.tfstate.* 10 | 11 | # Crash log files 12 | crash.log 13 | 14 | # Exclude all .tfvars files, which are likely to contain sentitive data, such as 15 | # password, private keys, and other secrets. These should not be part of version 16 | # control as they are data points which are potentially sensitive and subject 17 | # to change depending on the environment. 18 | # 19 | *.tfvars 20 | 21 | # Ignore override files as they are usually used to override resources locally and so 22 | # are not checked in 23 | override.tf 24 | override.tf.json 25 | *_override.tf 26 | *_override.tf.json 27 | 28 | # Include override files you do wish to add to version control using negated pattern 29 | # !example_override.tf 30 | 31 | # Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan 32 | # example: *tfplan* 33 | 34 | # Ignore CLI configuration files 35 | .terraformrc 36 | terraform.rc 37 | 38 | # Lambda zip archive and scripts 39 | *.zip 40 | !/modules/**/vendored_archives/*.zip 41 | *.py 42 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | repos: 2 | - repo: https://github.com/antonbabenko/pre-commit-terraform 3 | rev: v1.96.2 4 | hooks: 5 | - id: terraform_fmt 6 | - id: terraform_docs 7 | args: 8 | - '--args=--lockfile=false' 9 | - id: terraform_tflint 10 | args: 11 | - '--args=--only=terraform_deprecated_interpolation' 12 | - '--args=--only=terraform_deprecated_index' 13 | - '--args=--only=terraform_unused_declarations' 14 | - '--args=--only=terraform_comment_syntax' 15 | - '--args=--only=terraform_documented_outputs' 16 | - '--args=--only=terraform_documented_variables' 17 | - '--args=--only=terraform_typed_variables' 18 | - '--args=--only=terraform_module_pinned_source' 19 | - '--args=--only=terraform_naming_convention' 20 | - '--args=--only=terraform_required_version' 21 | - '--args=--only=terraform_required_providers' 22 | - '--args=--only=terraform_standard_module_structure' 23 | - '--args=--only=terraform_workspace_remote' 24 | - id: terraform_validate 25 | - repo: https://github.com/pre-commit/pre-commit-hooks 26 | rev: v5.0.0 27 | hooks: 28 | - id: check-merge-conflict 29 | - id: end-of-file-fixer 30 | - id: trailing-whitespace 31 | -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- 1 | { 2 | "branches": [ 3 | "main", 4 | "master" 5 | ], 6 | "ci": false, 7 | "plugins": [ 8 | [ 9 | "@semantic-release/commit-analyzer", 10 | { 11 | "preset": "conventionalcommits" 12 | } 13 | ], 14 | [ 15 | "@semantic-release/release-notes-generator", 16 | { 17 | "preset": "conventionalcommits" 18 | } 19 | ], 20 | [ 21 | "@semantic-release/github", 22 | { 23 | "successComment": "This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:", 24 | "labels": false, 25 | "releasedLabels": false 26 | } 27 | ], 28 | [ 29 | "@semantic-release/changelog", 30 | { 31 | "changelogFile": "CHANGELOG.md", 32 | "changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file." 33 | } 34 | ], 35 | [ 36 | "@semantic-release/git", 37 | { 38 | "assets": [ 39 | "CHANGELOG.md" 40 | ], 41 | "message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" 42 | } 43 | ] 44 | ] 45 | } 46 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. 4 | 5 | ## [6.2.0](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v6.1.0...v6.2.0) (2024-11-11) 6 | 7 | 8 | ### Features 9 | 10 | * Vendor latest versions and set default version to `v3.130.0` ([#47](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/47)) ([8c8d16e](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/8c8d16eccaf62ddc432fd4d8f407599b1a658eb1)) 11 | 12 | 13 | ### Bug Fixes 14 | 15 | * Update CI workflow versions to latest ([#46](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/46)) ([9db882b](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/9db882bfb87b9a58ac8d830cda0a22101f4bd362)) 16 | 17 | ## [6.1.0](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v6.0.2...v6.1.0) (2024-08-28) 18 | 19 | 20 | ### Features 21 | 22 | * Add variable for applying tags to the log_forwarder bucket ([#41](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/41)) ([37701a0](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/37701a060872da245fd35117e0fcb88065f24d36)) 23 | 24 | ## [6.0.2](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v6.0.1...v6.0.2) (2024-03-07) 25 | 26 | 27 | ### Bug Fixes 28 | 29 | * Update CI workflow versions to remove deprecated runtime warnings ([#38](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/38)) ([8448b57](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/8448b57d88a59a9ee69dd80342c2600bb2add177)) 30 | 31 | ### [6.0.1](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v6.0.0...v6.0.1) (2024-02-23) 32 | 33 | 34 | ### Bug Fixes 35 | 36 | * Change default runtime to python3.11 to support latest forwarder version ([#37](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/37)) ([35805f8](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/35805f851a91312a6a91ded0e93f7b96d6dc732b)) 37 | 38 | ## [6.0.0](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v5.1.0...v6.0.0) (2024-02-22) 39 | 40 | 41 | ### ⚠ BREAKING CHANGES 42 | 43 | * Bump Terraform and AWS provider MSV to `1.3` and `5.0` respectively, add latest releases and set `3.103.0` as the default version (#36) 44 | 45 | ### Features 46 | 47 | * Bump Terraform and AWS provider MSV to `1.3` and `5.0` respectively, add latest releases and set `3.103.0` as the default version ([#36](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/36)) ([588fbe9](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/588fbe98741f1e17089f0064d0182d252158d1bf)) 48 | 49 | ## [5.1.0](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v5.0.1...v5.1.0) (2023-04-21) 50 | 51 | 52 | ### Features 53 | 54 | * Add support for CloudWatch log group KMS key ([#31](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/31)) ([63e0576](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/63e0576fdf682caf72a49f20f2d8a62d23445ebb)) 55 | 56 | ### [5.0.1](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v5.0.0...v5.0.1) (2023-02-07) 57 | 58 | 59 | ### Bug Fixes 60 | 61 | * Change tags for 'aws_s3_bucket_object' based on AWS limit and add validation for them ([#26](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/26)) ([8250b8e](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/8250b8e331fa6d730370d6f8fc243634000e16b7)) 62 | 63 | ## [5.0.0](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v4.1.1...v5.0.0) (2023-02-03) 64 | 65 | 66 | ### ⚠ BREAKING CHANGES 67 | 68 | * Update S3 module to v3.6.1 and switch to resource aws_s3_object (#29) 69 | 70 | ### Features 71 | 72 | * Update S3 module to v3.6.1 and switch to resource aws_s3_object ([#29](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/29)) ([11ff8e9](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/11ff8e9dcd96aefb31a0998a8833b2c98e11b4f0)) 73 | 74 | ### [4.1.1](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/compare/v4.1.0...v4.1.1) (2022-11-07) 75 | 76 | 77 | ### Bug Fixes 78 | 79 | * Update CI configuration files to use latest version ([#23](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/issues/23)) ([24bbfe7](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/commit/24bbfe7cc270db7c1bd82e015895f7c4eef11237)) 80 | 81 | ## [4.1.0](https://github.com/clowdhaus/terraform-aws-datadog-forwarders/compare/v4.0.1...v4.1.0) (2022-04-20) 82 | 83 | 84 | ### Features 85 | 86 | * Repo has moved to [terraform-aws-modules](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders) organization ([420b921](https://github.com/clowdhaus/terraform-aws-datadog-forwarders/commit/420b9214b8684d6f9602533515ecc8b829d3244e)) 87 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | -------------------------------------------------------------------------------- /docs/UPGRADE-5.0.md: -------------------------------------------------------------------------------- 1 | # Upgrade from v4.x to v5.x 2 | 3 | ## Terraform State Moves 4 | The following Terraform state move commands are optional but recommended, if you want to avoid recreating the used S3 bucket. 5 | Because the resource `aws_s3_bucket_object` is deprecated and replaced by `aws_s3_bucket` with this release. 6 | 7 | The associated state move command would look similar to (albeit with your correct module name): 8 | 9 | ```sh 10 | terraform state mv 'module.datadog_log_forwarder.aws_s3_bucket_object.this[0]' 'module.datadog_log_forwarder.aws_s3_object.this[0]' 11 | ``` 12 | -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- 1 | # Terraform AWS Datadog Forwarders Examples 2 | 3 | - [Complete](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/tree/master/examples/complete) 4 | - [Simple](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/tree/master/examples/simple) 5 | -------------------------------------------------------------------------------- /examples/complete/pattern.txt: -------------------------------------------------------------------------------- 1 | (\d{3}-\d{2}-\d{4})|((\d{3}\) |\d{3}-)\d{3}-\d{4})|(\d{3}-\d{4}) 2 | -------------------------------------------------------------------------------- /examples/complete/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/examples/complete/variables.tf -------------------------------------------------------------------------------- /examples/complete/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 1.3" 3 | 4 | required_providers { 5 | aws = { 6 | source = "hashicorp/aws" 7 | version = ">= 5.0" 8 | } 9 | random = { 10 | source = "hashicorp/random" 11 | version = ">= 2.0" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/simple/README.md: -------------------------------------------------------------------------------- 1 | # Simple example 2 | 3 | Configuration in this directory creates the log forwarder, RDS enhanced monitoring forwarder, and VPC flow log forwarder with their default configurations. 4 | 5 | ## Usage 6 | 7 | To run this example you need to execute: 8 | 9 | ```bash 10 | $ terraform init 11 | $ terraform plan 12 | $ terraform apply 13 | ``` 14 | 15 | Note that this example may create resources which will incur monetary charges on your AWS bill. Run `terraform destroy` when you no longer need these resources. 16 | 17 | 18 | ## Requirements 19 | 20 | | Name | Version | 21 | |------|---------| 22 | | [terraform](#requirement\_terraform) | >= 1.3 | 23 | | [aws](#requirement\_aws) | >= 5.0 | 24 | | [random](#requirement\_random) | >= 2.0 | 25 | 26 | ## Providers 27 | 28 | | Name | Version | 29 | |------|---------| 30 | | [aws](#provider\_aws) | >= 5.0 | 31 | | [random](#provider\_random) | >= 2.0 | 32 | 33 | ## Modules 34 | 35 | | Name | Source | Version | 36 | |------|--------|---------| 37 | | [default](#module\_default) | ../../ | n/a | 38 | 39 | ## Resources 40 | 41 | | Name | Type | 42 | |------|------| 43 | | [aws_kms_alias.datadog](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_alias) | resource | 44 | | [aws_kms_key.datadog](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key) | resource | 45 | | [random_pet.this](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | resource | 46 | | [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | 47 | | [aws_iam_policy_document.datadog_cmk](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | 48 | | [aws_secretsmanager_secret.datadog_api_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/secretsmanager_secret) | data source | 49 | 50 | ## Inputs 51 | 52 | No inputs. 53 | 54 | ## Outputs 55 | 56 | | Name | Description | 57 | |------|-------------| 58 | | [log\_forwarder\_cloudwatch\_log\_group\_arn](#output\_log\_forwarder\_cloudwatch\_log\_group\_arn) | The ARN of the log forwarder lambda function CloudWatch log group | 59 | | [log\_forwarder\_lambda\_arn](#output\_log\_forwarder\_lambda\_arn) | The ARN of the log forwarder lambda function | 60 | | [log\_forwarder\_lambda\_qualified\_arn](#output\_log\_forwarder\_lambda\_qualified\_arn) | The ARN of the log forwarder lambda function (if versioning is enabled via publish = true) | 61 | | [log\_forwarder\_lambda\_source\_code\_hash](#output\_log\_forwarder\_lambda\_source\_code\_hash) | Base64-encoded representation of raw SHA-256 sum of the log forwarder zip file, provided either via filename or s3\_* parameters | 62 | | [log\_forwarder\_role\_arn](#output\_log\_forwarder\_role\_arn) | The log forwarder lambda role arn | 63 | | [log\_forwarder\_role\_name](#output\_log\_forwarder\_role\_name) | The log forwarder lambda role name | 64 | | [log\_forwarder\_role\_policy\_arn](#output\_log\_forwarder\_role\_policy\_arn) | The ARN of the log forwarder lambda role policy | 65 | | [log\_forwarder\_role\_policy\_name](#output\_log\_forwarder\_role\_policy\_name) | The name of the log forwarder lambda role policy | 66 | | [log\_forwarder\_s3\_bucket\_arn](#output\_log\_forwarder\_s3\_bucket\_arn) | The ARN of the log forwarder bucket. Will be of format arn:aws:s3:::bucketname | 67 | | [log\_forwarder\_s3\_bucket\_domain\_name](#output\_log\_forwarder\_s3\_bucket\_domain\_name) | The log forwarder bucket domain name. Will be of format bucketname.s3.amazonaws.com | 68 | | [log\_forwarder\_s3\_bucket\_regional\_domain\_name](#output\_log\_forwarder\_s3\_bucket\_regional\_domain\_name) | The log forwarder bucket region-specific domain name. The bucket domain name including the region name | 69 | | [log\_forwarder\_s3\_object\_id](#output\_log\_forwarder\_s3\_object\_id) | The `key` of the log forwarder lambda zip archive | 70 | | [log\_forwarder\_s3\_object\_version](#output\_log\_forwarder\_s3\_object\_version) | A unique version ID value for the log forwarder lambda zip object, if bucket versioning is enabled | 71 | | [rds\_em\_forwarder\_cloudwatch\_log\_group\_arn](#output\_rds\_em\_forwarder\_cloudwatch\_log\_group\_arn) | The ARN of the RDS enhanced monitoring forwarder lambda function CloudWatch log group | 72 | | [rds\_em\_forwarder\_lambda\_arn](#output\_rds\_em\_forwarder\_lambda\_arn) | The ARN of the RDS enhanced monitoring forwarder lambda function | 73 | | [rds\_em\_forwarder\_lambda\_qualified\_arn](#output\_rds\_em\_forwarder\_lambda\_qualified\_arn) | The ARN of the RDS enhanced monitoring forwarder lambda function (if versioning is enabled via publish = true) | 74 | | [rds\_em\_forwarder\_lambda\_source\_code\_hash](#output\_rds\_em\_forwarder\_lambda\_source\_code\_hash) | Base64-encoded representation of raw SHA-256 sum of the RDS enhanced monitoring lambda forwarder zip file, provided either via filename or s3\_* parameters | 75 | | [rds\_em\_forwarder\_role\_arn](#output\_rds\_em\_forwarder\_role\_arn) | The RDS enhanced monitoring forwarder lambda role arn | 76 | | [rds\_em\_forwarder\_role\_name](#output\_rds\_em\_forwarder\_role\_name) | The RDS enhanced monitoring forwarder lambda role name | 77 | | [rds\_em\_forwarder\_role\_policy\_arn](#output\_rds\_em\_forwarder\_role\_policy\_arn) | The ARN of the RDS enhanced monitoring forwarder lambda role policy | 78 | | [rds\_em\_forwarder\_role\_policy\_name](#output\_rds\_em\_forwarder\_role\_policy\_name) | The name of the RDS enhanced monitoring forwarder lambda role policy | 79 | | [vpc\_fl\_forwarder\_cloudwatch\_log\_group\_arn](#output\_vpc\_fl\_forwarder\_cloudwatch\_log\_group\_arn) | The ARN of the VPC flow log forwarder lambda function CloudWatch log group | 80 | | [vpc\_fl\_forwarder\_lambda\_arn](#output\_vpc\_fl\_forwarder\_lambda\_arn) | The ARN of the VPC flow log forwarder lambda function | 81 | | [vpc\_fl\_forwarder\_lambda\_qualified\_arn](#output\_vpc\_fl\_forwarder\_lambda\_qualified\_arn) | The ARN of the VPC flow log forwarder lambda function (if versioning is enabled via publish = true) | 82 | | [vpc\_fl\_forwarder\_lambda\_source\_code\_hash](#output\_vpc\_fl\_forwarder\_lambda\_source\_code\_hash) | Base64-encoded representation of raw SHA-256 sum of the VPC flow log forwarder lambda zip file, provided either via filename or s3\_* parameters | 83 | | [vpc\_fl\_forwarder\_role\_arn](#output\_vpc\_fl\_forwarder\_role\_arn) | The VPC flow log forwarder lambda role arn | 84 | | [vpc\_fl\_forwarder\_role\_name](#output\_vpc\_fl\_forwarder\_role\_name) | The VPC flow log forwarder lambda role name | 85 | | [vpc\_fl\_forwarder\_role\_policy\_arn](#output\_vpc\_fl\_forwarder\_role\_policy\_arn) | The ARN of the VPC flow log forwarder lambda role policy | 86 | | [vpc\_fl\_forwarder\_role\_policy\_name](#output\_vpc\_fl\_forwarder\_role\_policy\_name) | The name of the VPC flow log forwarder lambda role policy | 87 | 88 | 89 | Apache-2.0 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/blob/master/LICENSE). 90 | -------------------------------------------------------------------------------- /examples/simple/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = local.region 3 | } 4 | 5 | data "aws_caller_identity" "current" {} 6 | 7 | locals { 8 | region = "us-east-1" 9 | name = "datadog-fwd-ex-${basename(path.cwd)}" 10 | 11 | tags = { 12 | Example = local.name 13 | GithubRepo = "terraform-aws-datadog-forwarders" 14 | GithubOrg = "terraform-aws-modules" 15 | } 16 | } 17 | 18 | # Note: you will need to create this secret manually prior to running 19 | # This avoids having to pass the key to Terraform in plaintext 20 | data "aws_secretsmanager_secret" "datadog_api_key" { 21 | name = "datadog/api_key" 22 | } 23 | 24 | ################################################################################ 25 | # Module 26 | ################################################################################ 27 | 28 | module "default" { 29 | source = "../../" 30 | 31 | kms_alias = aws_kms_alias.datadog.name 32 | dd_api_key_secret_arn = data.aws_secretsmanager_secret.datadog_api_key.arn 33 | 34 | tags = local.tags 35 | } 36 | 37 | ################################################################################ 38 | # Supporting Resources 39 | ################################################################################ 40 | 41 | resource "random_pet" "this" { 42 | length = 2 43 | } 44 | 45 | resource "aws_kms_key" "datadog" { 46 | description = "Datadog KMS CMK" 47 | enable_key_rotation = true 48 | policy = data.aws_iam_policy_document.datadog_cmk.json 49 | 50 | tags = local.tags 51 | } 52 | 53 | data "aws_iam_policy_document" "datadog_cmk" { 54 | statement { 55 | sid = "CMKOwnerPolicy" 56 | 57 | principals { 58 | type = "AWS" 59 | identifiers = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:root"] 60 | } 61 | 62 | actions = ["kms:*"] 63 | resources = ["*"] 64 | } 65 | } 66 | 67 | resource "aws_kms_alias" "datadog" { 68 | name = "alias/datadog/${random_pet.this.id}" 69 | target_key_id = aws_kms_key.datadog.key_id 70 | } 71 | -------------------------------------------------------------------------------- /examples/simple/outputs.tf: -------------------------------------------------------------------------------- 1 | # Log Forwarder 2 | output "log_forwarder_s3_bucket_arn" { 3 | description = "The ARN of the log forwarder bucket. Will be of format arn:aws:s3:::bucketname" 4 | value = module.default.log_forwarder_s3_bucket_arn 5 | } 6 | 7 | output "log_forwarder_s3_bucket_domain_name" { 8 | description = "The log forwarder bucket domain name. Will be of format bucketname.s3.amazonaws.com" 9 | value = module.default.log_forwarder_s3_bucket_arn 10 | } 11 | 12 | output "log_forwarder_s3_bucket_regional_domain_name" { 13 | description = "The log forwarder bucket region-specific domain name. The bucket domain name including the region name" 14 | value = module.default.log_forwarder_s3_bucket_regional_domain_name 15 | } 16 | 17 | output "log_forwarder_role_arn" { 18 | description = "The log forwarder lambda role arn" 19 | value = module.default.log_forwarder_role_arn 20 | } 21 | 22 | output "log_forwarder_role_name" { 23 | description = "The log forwarder lambda role name" 24 | value = module.default.log_forwarder_role_name 25 | } 26 | 27 | output "log_forwarder_role_policy_arn" { 28 | description = "The ARN of the log forwarder lambda role policy" 29 | value = module.default.log_forwarder_role_policy_arn 30 | } 31 | 32 | output "log_forwarder_role_policy_name" { 33 | description = "The name of the log forwarder lambda role policy" 34 | value = module.default.log_forwarder_role_policy_name 35 | } 36 | 37 | output "log_forwarder_s3_object_id" { 38 | description = "The `key` of the log forwarder lambda zip archive" 39 | value = module.default.log_forwarder_s3_object_id 40 | } 41 | 42 | output "log_forwarder_s3_object_version" { 43 | description = "A unique version ID value for the log forwarder lambda zip object, if bucket versioning is enabled" 44 | value = module.default.log_forwarder_s3_object_version 45 | } 46 | 47 | output "log_forwarder_lambda_arn" { 48 | description = "The ARN of the log forwarder lambda function" 49 | value = module.default.log_forwarder_lambda_arn 50 | } 51 | 52 | output "log_forwarder_lambda_qualified_arn" { 53 | description = "The ARN of the log forwarder lambda function (if versioning is enabled via publish = true)" 54 | value = module.default.log_forwarder_lambda_qualified_arn 55 | } 56 | 57 | output "log_forwarder_lambda_source_code_hash" { 58 | description = "Base64-encoded representation of raw SHA-256 sum of the log forwarder zip file, provided either via filename or s3_* parameters" 59 | value = module.default.log_forwarder_lambda_source_code_hash 60 | } 61 | 62 | output "log_forwarder_cloudwatch_log_group_arn" { 63 | description = "The ARN of the log forwarder lambda function CloudWatch log group" 64 | value = module.default.log_forwarder_cloudwatch_log_group_arn 65 | } 66 | 67 | # RDS Enhanced Monitoring Forwarder 68 | output "rds_em_forwarder_role_arn" { 69 | description = "The RDS enhanced monitoring forwarder lambda role arn" 70 | value = module.default.rds_em_forwarder_role_arn 71 | } 72 | 73 | output "rds_em_forwarder_role_name" { 74 | description = "The RDS enhanced monitoring forwarder lambda role name" 75 | value = module.default.rds_em_forwarder_role_name 76 | } 77 | 78 | output "rds_em_forwarder_role_policy_arn" { 79 | description = "The ARN of the RDS enhanced monitoring forwarder lambda role policy" 80 | value = module.default.rds_em_forwarder_role_policy_arn 81 | } 82 | 83 | output "rds_em_forwarder_role_policy_name" { 84 | description = "The name of the RDS enhanced monitoring forwarder lambda role policy" 85 | value = module.default.rds_em_forwarder_role_policy_name 86 | } 87 | 88 | output "rds_em_forwarder_lambda_arn" { 89 | description = "The ARN of the RDS enhanced monitoring forwarder lambda function" 90 | value = module.default.rds_em_forwarder_lambda_arn 91 | } 92 | 93 | output "rds_em_forwarder_lambda_qualified_arn" { 94 | description = "The ARN of the RDS enhanced monitoring forwarder lambda function (if versioning is enabled via publish = true)" 95 | value = module.default.rds_em_forwarder_lambda_qualified_arn 96 | } 97 | 98 | output "rds_em_forwarder_lambda_source_code_hash" { 99 | description = "Base64-encoded representation of raw SHA-256 sum of the RDS enhanced monitoring lambda forwarder zip file, provided either via filename or s3_* parameters" 100 | value = module.default.rds_em_forwarder_lambda_source_code_hash 101 | } 102 | 103 | output "rds_em_forwarder_cloudwatch_log_group_arn" { 104 | description = "The ARN of the RDS enhanced monitoring forwarder lambda function CloudWatch log group" 105 | value = module.default.rds_em_forwarder_cloudwatch_log_group_arn 106 | } 107 | 108 | # VPC Flow Log Forwarder 109 | output "vpc_fl_forwarder_role_arn" { 110 | description = "The VPC flow log forwarder lambda role arn" 111 | value = module.default.vpc_fl_forwarder_role_arn 112 | } 113 | 114 | output "vpc_fl_forwarder_role_name" { 115 | description = "The VPC flow log forwarder lambda role name" 116 | value = module.default.vpc_fl_forwarder_role_name 117 | } 118 | 119 | output "vpc_fl_forwarder_role_policy_arn" { 120 | description = "The ARN of the VPC flow log forwarder lambda role policy" 121 | value = module.default.vpc_fl_forwarder_role_policy_arn 122 | } 123 | 124 | output "vpc_fl_forwarder_role_policy_name" { 125 | description = "The name of the VPC flow log forwarder lambda role policy" 126 | value = module.default.vpc_fl_forwarder_role_policy_name 127 | } 128 | 129 | output "vpc_fl_forwarder_lambda_arn" { 130 | description = "The ARN of the VPC flow log forwarder lambda function" 131 | value = module.default.vpc_fl_forwarder_lambda_arn 132 | } 133 | 134 | output "vpc_fl_forwarder_lambda_qualified_arn" { 135 | description = "The ARN of the VPC flow log forwarder lambda function (if versioning is enabled via publish = true)" 136 | value = module.default.vpc_fl_forwarder_lambda_qualified_arn 137 | } 138 | 139 | output "vpc_fl_forwarder_lambda_source_code_hash" { 140 | description = "Base64-encoded representation of raw SHA-256 sum of the VPC flow log forwarder lambda zip file, provided either via filename or s3_* parameters" 141 | value = module.default.vpc_fl_forwarder_lambda_source_code_hash 142 | } 143 | 144 | output "vpc_fl_forwarder_cloudwatch_log_group_arn" { 145 | description = "The ARN of the VPC flow log forwarder lambda function CloudWatch log group" 146 | value = module.default.vpc_fl_forwarder_cloudwatch_log_group_arn 147 | } 148 | -------------------------------------------------------------------------------- /examples/simple/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/examples/simple/variables.tf -------------------------------------------------------------------------------- /examples/simple/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 1.3" 3 | 4 | required_providers { 5 | aws = { 6 | source = "hashicorp/aws" 7 | version = ">= 5.0" 8 | } 9 | random = { 10 | source = "hashicorp/random" 11 | version = ">= 2.0" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /modules/log_forwarder/main.tf: -------------------------------------------------------------------------------- 1 | locals { 2 | bucket_name = var.bucket_name != "" ? var.bucket_name : "datadog-forwarder-${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}" 3 | 4 | dd_api_key = var.dd_api_key != "" ? { DD_API_KEY = var.dd_api_key } : {} 5 | dd_api_key_secret_arn = var.dd_api_key_secret_arn != "" ? { DD_API_KEY_SECRET_ARN = var.dd_api_key_secret_arn } : {} 6 | 7 | description = "Lambda function to push logs, metrics, and traces to Datadog" 8 | version_tag = { DD_FORWARDER_VERSION = var.forwarder_version } 9 | 10 | role_name = coalesce(var.role_name, var.name) 11 | policy_name = coalesce(var.policy_name, var.name) 12 | 13 | zip_url = "https://github.com/DataDog/datadog-serverless-functions/releases/download/aws-dd-forwarder-${var.forwarder_version}/aws-dd-forwarder-${var.forwarder_version}.zip" 14 | zip_name = "aws-dd-forwarder-${var.forwarder_version}.zip" 15 | forwarder_zip = "${path.module}/${local.zip_name}" 16 | } 17 | 18 | data "aws_caller_identity" "current" {} 19 | data "aws_region" "current" {} 20 | 21 | ################################################################################ 22 | # Forwarder Bucket 23 | ################################################################################ 24 | 25 | module "this_s3_bucket" { 26 | source = "terraform-aws-modules/s3-bucket/aws" 27 | version = "v3.6.1" 28 | 29 | create_bucket = var.create && var.create_bucket 30 | bucket = local.bucket_name 31 | force_destroy = true 32 | 33 | attach_deny_insecure_transport_policy = var.bucket_attach_deny_insecure_transport_policy 34 | 35 | block_public_acls = true 36 | block_public_policy = true 37 | ignore_public_acls = true 38 | restrict_public_buckets = true 39 | 40 | versioning = { 41 | enabled = true 42 | } 43 | 44 | server_side_encryption_configuration = { 45 | rule = { 46 | apply_server_side_encryption_by_default = var.bucket_encryption_settings 47 | } 48 | } 49 | 50 | tags = merge(var.tags, var.bucket_tags) 51 | } 52 | 53 | ################################################################################ 54 | # Forwarder IAM Role 55 | ################################################################################ 56 | 57 | data "aws_iam_policy_document" "this" { 58 | statement { 59 | actions = [ 60 | "sts:AssumeRole", 61 | ] 62 | 63 | principals { 64 | type = "Service" 65 | identifiers = ["lambda.amazonaws.com"] 66 | } 67 | } 68 | } 69 | 70 | resource "aws_iam_role" "this" { 71 | count = var.create && var.create_role ? 1 : 0 72 | 73 | name = var.use_role_name_prefix ? null : local.role_name 74 | name_prefix = var.use_role_name_prefix ? "${local.role_name}-" : null 75 | description = local.description 76 | path = var.role_path 77 | 78 | assume_role_policy = data.aws_iam_policy_document.this.json 79 | max_session_duration = var.role_max_session_duration 80 | permissions_boundary = var.role_permissions_boundary 81 | force_detach_policies = true 82 | 83 | tags = merge(var.tags, var.role_tags) 84 | } 85 | 86 | resource "aws_iam_policy" "this" { 87 | count = var.create && var.create_role_policy ? 1 : 0 88 | 89 | name = var.use_policy_name_prefix ? null : local.policy_name 90 | name_prefix = var.use_policy_name_prefix ? "${local.policy_name}-" : null 91 | description = local.description 92 | path = var.policy_path 93 | 94 | policy = templatefile( 95 | "${path.module}/policy.tmpl", 96 | { 97 | vpc_check = var.subnet_ids != null 98 | s3_check = length(var.s3_log_bucket_arns) > 0 99 | s3_log_bucket_arns = jsonencode(var.s3_log_bucket_arns) 100 | datadog_s3_bucket = "arn:aws:s3:::${local.bucket_name}" 101 | dd_api_key_secret_arn = var.dd_api_key_secret_arn 102 | } 103 | ) 104 | 105 | tags = var.tags 106 | } 107 | 108 | resource "aws_iam_role_policy_attachment" "this" { 109 | count = var.create && var.create_role ? 1 : 0 110 | 111 | role = aws_iam_role.this[0].id 112 | policy_arn = var.create_role_policy ? aws_iam_policy.this[0].id : var.policy_arn 113 | } 114 | 115 | ################################################################################ 116 | # Forwarder Lambda Function 117 | ################################################################################ 118 | 119 | resource "null_resource" "this" { 120 | count = var.create ? 1 : 0 121 | 122 | triggers = { 123 | on_version_change = var.forwarder_version 124 | } 125 | 126 | provisioner "local-exec" { 127 | command = "curl --silent -o ${local.forwarder_zip} -L '${local.zip_url}'" 128 | } 129 | } 130 | 131 | resource "aws_s3_object" "this" { 132 | count = var.create ? 1 : 0 133 | 134 | bucket = var.create_bucket ? module.this_s3_bucket.s3_bucket_id : var.bucket_name 135 | key = join("/", compact([var.bucket_prefix, local.zip_name])) 136 | source = local.forwarder_zip 137 | 138 | content_encoding = "zip" 139 | content_language = "en-US" 140 | content_type = "application/zip" 141 | 142 | storage_class = var.s3_zip_storage_class 143 | server_side_encryption = var.s3_zip_server_side_encryption 144 | kms_key_id = var.s3_zip_kms_key_id 145 | metadata = var.s3_zip_metadata 146 | 147 | tags = var.s3_zip_tags_only ? var.s3_zip_tags : merge(var.tags, var.s3_zip_tags, local.version_tag) 148 | 149 | depends_on = [null_resource.this] 150 | } 151 | 152 | resource "aws_lambda_function" "this" { 153 | count = var.create ? 1 : 0 154 | 155 | s3_bucket = var.create_bucket ? module.this_s3_bucket.s3_bucket_id : var.bucket_name 156 | s3_key = aws_s3_object.this[0].key 157 | s3_object_version = aws_s3_object.this[0].version_id 158 | function_name = var.name 159 | handler = "lambda_function.lambda_handler" 160 | 161 | role = var.create_role ? aws_iam_role.this[0].arn : var.role_arn 162 | description = local.description 163 | runtime = var.runtime 164 | layers = var.layers 165 | memory_size = var.memory_size 166 | timeout = var.timeout 167 | publish = var.publish 168 | architectures = var.architectures 169 | 170 | reserved_concurrent_executions = var.reserved_concurrent_executions 171 | kms_key_arn = var.kms_key_arn 172 | 173 | 174 | dynamic "vpc_config" { 175 | for_each = var.subnet_ids != null && var.security_group_ids != null ? [true] : [] 176 | content { 177 | security_group_ids = var.security_group_ids 178 | subnet_ids = var.subnet_ids 179 | } 180 | } 181 | 182 | environment { 183 | variables = merge( 184 | local.dd_api_key, 185 | local.dd_api_key_secret_arn, 186 | { 187 | DD_ENHANCED_METRICS = false 188 | DD_FETCH_LAMBDA_TAGS = true 189 | DD_TAGS_CACHE_TTL_SECONDS = 300 190 | DD_USE_PRIVATE_LINK = false 191 | DD_SITE = var.dd_site 192 | DD_S3_BUCKET_NAME = local.bucket_name 193 | }, 194 | var.environment_variables, 195 | local.version_tag 196 | ) 197 | } 198 | 199 | tags = merge(var.tags, var.lambda_tags, local.version_tag) 200 | } 201 | 202 | resource "aws_lambda_permission" "cloudwatch" { 203 | count = var.create ? 1 : 0 204 | 205 | statement_id = "datadog-forwarder-CloudWatchLogsPermission" 206 | action = "lambda:InvokeFunction" 207 | function_name = aws_lambda_function.this[0].function_name 208 | principal = "logs.${data.aws_region.current.name}.amazonaws.com" 209 | source_account = data.aws_caller_identity.current.account_id 210 | } 211 | 212 | resource "aws_lambda_permission" "s3" { 213 | count = var.create && length(var.s3_log_bucket_arns) > 0 ? 1 : 0 214 | 215 | statement_id = "datadog-forwarder-S3Permission" 216 | action = "lambda:InvokeFunction" 217 | function_name = aws_lambda_function.this[0].function_name 218 | principal = "s3.amazonaws.com" 219 | source_account = data.aws_caller_identity.current.account_id 220 | } 221 | 222 | resource "aws_cloudwatch_log_group" "this" { 223 | count = var.create ? 1 : 0 224 | 225 | name = "/aws/lambda/${aws_lambda_function.this[0].function_name}" 226 | retention_in_days = var.log_retention_days 227 | kms_key_id = var.log_kms_key_id 228 | 229 | tags = var.tags 230 | } 231 | -------------------------------------------------------------------------------- /modules/log_forwarder/outputs.tf: -------------------------------------------------------------------------------- 1 | # Forwarder bucket 2 | output "s3_bucket_id" { 3 | description = "The name of the bucket" 4 | value = module.this_s3_bucket.s3_bucket_id 5 | } 6 | 7 | output "s3_bucket_arn" { 8 | description = "The ARN of the bucket. Will be of format arn:aws:s3:::bucketname" 9 | value = module.this_s3_bucket.s3_bucket_arn 10 | } 11 | 12 | output "s3_bucket_domain_name" { 13 | description = "The bucket domain name. Will be of format bucketname.s3.amazonaws.com" 14 | value = module.this_s3_bucket.s3_bucket_bucket_domain_name 15 | } 16 | 17 | output "s3_bucket_regional_domain_name" { 18 | description = "The bucket region-specific domain name. The bucket domain name including the region name" 19 | value = module.this_s3_bucket.s3_bucket_bucket_regional_domain_name 20 | } 21 | 22 | # Forwarder role 23 | output "role_arn" { 24 | description = "The forwarder lambda role arn" 25 | value = try(aws_iam_role.this[0].arn, "") 26 | } 27 | 28 | output "role_id" { 29 | description = "The forwarder lambda role id" 30 | value = try(aws_iam_role.this[0].id, "") 31 | } 32 | 33 | output "role_name" { 34 | description = "The forwarder lambda role name" 35 | value = try(aws_iam_role.this[0].name, "") 36 | } 37 | 38 | output "role_unique_id" { 39 | description = "The stable and unique string identifying the forwarder lambda role" 40 | value = try(aws_iam_role.this[0].unique_id, "") 41 | } 42 | 43 | output "role_policy_arn" { 44 | description = "The ARN of the forwarder lambda role policy" 45 | value = try(aws_iam_policy.this[0].arn, "") 46 | } 47 | 48 | output "role_policy_id" { 49 | description = "The ID of the forwarder lambda role policy" 50 | value = try(aws_iam_policy.this[0].id, "") 51 | } 52 | 53 | output "role_policy_name" { 54 | description = "The name of the forwarder lambda role policy" 55 | value = try(aws_iam_policy.this[0].name, "") 56 | } 57 | 58 | # Forwarder ZIP Archive 59 | output "s3_object_id" { 60 | description = "The `key` of the forwarder lambda zip archive" 61 | value = try(aws_s3_object.this[0].id, "") 62 | } 63 | 64 | output "s3_object_etag" { 65 | description = "The ETag generated for the forwarder lambda zip object (an MD5 sum of the object content)" 66 | value = try(aws_s3_object.this[0].etag, "") 67 | } 68 | 69 | output "s3_object_version" { 70 | description = "A unique version ID value for the forwarder lambda zip object, if bucket versioning is enabled" 71 | value = try(aws_s3_object.this[0].version_id, "") 72 | } 73 | 74 | # Forwarder Lambda Function 75 | output "lambda_arn" { 76 | description = "The ARN of the forwarder lambda function" 77 | value = try(aws_lambda_function.this[0].arn, "") 78 | } 79 | 80 | output "lambda_qualified_arn" { 81 | description = "The ARN of the forwarder lambda function (if versioning is enabled via publish = true)" 82 | value = try(aws_lambda_function.this[0].qualified_arn, "") 83 | } 84 | 85 | output "lambda_version" { 86 | description = "Latest published version of the forwarder lambda function" 87 | value = try(aws_lambda_function.this[0].version, "") 88 | } 89 | 90 | output "lambda_kms_key_arn" { 91 | description = "(Optional) The ARN for the KMS encryption key for the forwarder lambda function" 92 | value = try(aws_lambda_function.this[0].kms_key_arn, "") 93 | } 94 | 95 | output "lambda_source_code_hash" { 96 | description = "Base64-encoded representation of raw SHA-256 sum of the zip file, provided either via filename or s3_* parameters" 97 | value = try(aws_lambda_function.this[0].source_code_hash, "") 98 | } 99 | 100 | # Forwarder CloudWatch Logs 101 | output "cloudwatch_log_group_arn" { 102 | description = "The ARN of the forwarder lambda function CloudWatch log group" 103 | value = try(aws_cloudwatch_log_group.this[0].arn, "") 104 | } 105 | -------------------------------------------------------------------------------- /modules/log_forwarder/policy.tmpl: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "2012-10-17", 3 | "Statement": [{ 4 | "Action": [ 5 | "logs:CreateLogGroup", 6 | "logs:CreateLogStream", 7 | "logs:ListTagsLogGroup", 8 | "tag:GetResources", 9 | "logs:PutLogEvents"%{ if vpc_check }, 10 | "ec2:CreateNetworkInterface", 11 | "ec2:DescribeNetworkInterfaces", 12 | "ec2:DeleteNetworkInterface"%{ endif } 13 | ], 14 | "Effect": "Allow", 15 | "Resource": "*", 16 | "Sid": "AnyResourceAccess" 17 | }, 18 | { 19 | "Action": "kms:Decrypt", 20 | "Effect": "Allow", 21 | "Resource": "*", 22 | "Sid": "KmsDecrypt" 23 | }, 24 | { 25 | "Action": [ 26 | "s3:GetObject", 27 | "s3:PutObject", 28 | "s3:DeleteObject", 29 | "s3:ListBucket" 30 | ], 31 | "Effect": "Allow", 32 | "Resource": [ 33 | "${datadog_s3_bucket}", 34 | "${datadog_s3_bucket}/*" 35 | ], 36 | "Sid": "DatadogBucketFullAccess" 37 | }%{ if s3_check }, 38 | { 39 | "Action": "s3:GetObject", 40 | "Effect": "Allow", 41 | "Resource": ${s3_log_bucket_arns}, 42 | "Sid": "ReadS3Logs" 43 | }%{ endif }%{ if dd_api_key_secret_arn != "" }, 44 | { 45 | "Action": "secretsmanager:GetSecretValue", 46 | "Effect": "Allow", 47 | "Resource": "${dd_api_key_secret_arn}", 48 | "Sid": "GetApiKeySecret" 49 | }%{ endif } 50 | ] 51 | } 52 | -------------------------------------------------------------------------------- /modules/log_forwarder/variables.tf: -------------------------------------------------------------------------------- 1 | variable "create" { 2 | description = "Controls whether the forwarder resources should be created" 3 | type = bool 4 | default = true 5 | } 6 | 7 | variable "tags" { 8 | description = "A map of tags to use on all resources" 9 | type = map(string) 10 | default = {} 11 | } 12 | 13 | # Datadog environment Variables 14 | variable "dd_api_key" { 15 | description = "The Datadog API key, which can be found from the APIs page (/account/settings#api). It will be stored in AWS Secrets Manager securely" 16 | type = string 17 | default = "" 18 | } 19 | 20 | variable "dd_api_key_secret_arn" { 21 | description = "The ARN of the Secrets Manager secret storing the Datadog API key, if you already have it stored in Secrets Manager" 22 | type = string 23 | default = "" 24 | } 25 | 26 | variable "dd_site" { 27 | description = "Define your Datadog Site to send data to. For the Datadog EU site, set to datadoghq.eu" 28 | type = string 29 | default = "datadoghq.com" 30 | } 31 | 32 | # S3 Forwarder Bucket 33 | variable "create_bucket" { 34 | description = "Controls whether an S3 bucket should be created for the forwarder" 35 | type = bool 36 | default = true 37 | } 38 | 39 | variable "bucket_name" { 40 | description = "Forwarder S3 bucket name" 41 | type = string 42 | default = "" 43 | } 44 | 45 | variable "bucket_attach_deny_insecure_transport_policy" { 46 | description = "Controls if S3 bucket should have deny non-SSL transport policy attacheds" 47 | type = bool 48 | default = false 49 | } 50 | 51 | variable "bucket_encryption_settings" { 52 | description = "S3 bucket server side encryption settings" 53 | type = map(string) 54 | default = { 55 | sse_algorithm = "AES256" 56 | } 57 | } 58 | 59 | # Forwarder S3 Zip Objcet 60 | variable "bucket_prefix" { 61 | description = "S3 object key prefix to prepend to zip archive name" 62 | type = string 63 | default = "" 64 | } 65 | 66 | variable "bucket_tags" { 67 | description = "A map of tags to apply to the bucket" 68 | type = map(string) 69 | default = {} 70 | } 71 | 72 | variable "s3_zip_storage_class" { 73 | description = "Specifies the desired Storage Class for the zip object. Can be either `STANDARD`, `REDUCED_REDUNDANCY`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, or `STANDARD_IA`" 74 | type = string 75 | default = null 76 | } 77 | 78 | variable "s3_zip_server_side_encryption" { 79 | description = "Server-side encryption of the zip object in S3. Valid values are `AES256` and `aws:kms`" 80 | type = string 81 | default = null 82 | } 83 | 84 | variable "s3_zip_kms_key_id" { 85 | description = "The AWS KMS Key ARN to use for object encryption" 86 | type = string 87 | default = null 88 | } 89 | 90 | variable "s3_zip_metadata" { 91 | description = "A map of keys/values to provision metadata (will be automatically prefixed by `x-amz-meta-`" 92 | type = map(string) 93 | default = {} 94 | } 95 | 96 | variable "s3_zip_tags" { 97 | description = "A map of tags to apply to the zip archive in S3" 98 | type = map(string) 99 | default = {} 100 | } 101 | 102 | variable "s3_zip_tags_only" { 103 | description = "Set to true to not merge `var.tags` with `s3_zip_tags`. Useful to avoid breaching S3 Object 10 tag limit" 104 | type = bool 105 | default = false 106 | } 107 | 108 | # Forwarder IAM Role 109 | variable "create_role" { 110 | description = "Controls whether an IAM role is created for the forwarder" 111 | type = bool 112 | default = true 113 | } 114 | 115 | variable "role_arn" { 116 | description = "IAM role arn for forwarder lambda function to utilize" 117 | type = string 118 | default = null 119 | } 120 | 121 | variable "role_name" { 122 | description = "Forwarder role name" 123 | type = string 124 | default = "" 125 | } 126 | 127 | variable "use_role_name_prefix" { 128 | description = "Whether to use unique name beginning with the specified `role_name` for the forwarder role" 129 | type = bool 130 | default = false 131 | } 132 | 133 | variable "role_path" { 134 | description = "Forwarder role path" 135 | type = string 136 | default = null 137 | } 138 | 139 | variable "role_max_session_duration" { 140 | description = "The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours" 141 | type = number 142 | default = null 143 | } 144 | 145 | variable "role_permissions_boundary" { 146 | description = "The ARN of the policy that is used to set the permissions boundary for the forwarder role" 147 | type = string 148 | default = null 149 | } 150 | 151 | variable "role_tags" { 152 | description = "A map of tags to apply to the forwarder role" 153 | type = map(string) 154 | default = {} 155 | } 156 | 157 | variable "create_role_policy" { 158 | description = "Controls whether an IAM role policy is created for the forwarder" 159 | type = bool 160 | default = true 161 | } 162 | 163 | variable "policy_arn" { 164 | description = "IAM policy arn for forwarder lambda function to utilize" 165 | type = string 166 | default = null 167 | } 168 | 169 | variable "policy_name" { 170 | description = "Forwarder policy name" 171 | type = string 172 | default = "" 173 | } 174 | 175 | variable "use_policy_name_prefix" { 176 | description = "Whether to use unique name beginning with the specified `policy_name` for the forwarder policy" 177 | type = bool 178 | default = false 179 | } 180 | 181 | variable "policy_path" { 182 | description = "Forwarder policy path" 183 | type = string 184 | default = null 185 | } 186 | 187 | variable "s3_log_bucket_arns" { 188 | description = "S3 log buckets for forwarder to read and forward logs to Datadog" 189 | type = list(string) 190 | default = [] 191 | } 192 | 193 | # Forwarder Lambda Function 194 | variable "forwarder_version" { 195 | description = "Forwarder version - see https://github.com/DataDog/datadog-serverless-functions/releases" 196 | type = string 197 | default = "3.130.0" 198 | } 199 | 200 | variable "name" { 201 | description = "Forwarder lambda name" 202 | type = string 203 | default = "datadog-log-forwarder" 204 | } 205 | 206 | variable "runtime" { 207 | description = "Lambda function runtime" 208 | type = string 209 | default = "python3.11" 210 | } 211 | 212 | variable "layers" { 213 | description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to the forwarder lambda" 214 | type = list(string) 215 | default = [] 216 | } 217 | 218 | variable "memory_size" { 219 | description = "Memory size for the forwarder lambda function" 220 | type = number 221 | default = 1024 222 | } 223 | 224 | variable "timeout" { 225 | description = "The amount of time the forwarder lambda has to execute in seconds" 226 | type = number 227 | default = 120 228 | } 229 | 230 | variable "publish" { 231 | description = "Whether to publish creation/change as a new Lambda Function Version" 232 | type = bool 233 | default = false 234 | } 235 | 236 | variable "architectures" { 237 | description = "Instruction set architecture for your Lambda function. Valid values are `[\"x86_64\"]` and `[\"arm64\"]`. Default is `[\"x86_64\"]`" 238 | type = list(string) 239 | default = ["x86_64"] 240 | } 241 | 242 | variable "reserved_concurrent_executions" { 243 | description = "The amount of reserved concurrent executions for the forwarder lambda function" 244 | type = number 245 | default = 100 246 | } 247 | 248 | variable "kms_key_arn" { 249 | description = "KMS key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key" 250 | type = string 251 | default = null 252 | } 253 | 254 | variable "subnet_ids" { 255 | description = "List of subnet ids when Lambda Function should run in the VPC. Usually private or intra subnets" 256 | type = list(string) 257 | default = null 258 | } 259 | 260 | variable "security_group_ids" { 261 | description = "List of security group ids when Lambda Function should run in the VPC" 262 | type = list(string) 263 | default = null 264 | } 265 | 266 | variable "environment_variables" { 267 | description = "A map of environment variables for the forwarder lambda function" 268 | type = map(string) 269 | default = {} 270 | } 271 | 272 | variable "lambda_tags" { 273 | description = "A map of tags to apply to the forwarder lambda function" 274 | type = map(string) 275 | default = {} 276 | } 277 | 278 | variable "log_retention_days" { 279 | description = "Forwarder CloudWatch log group retention in days" 280 | type = number 281 | default = 7 282 | } 283 | 284 | variable "log_kms_key_id" { 285 | description = "The AWS KMS Key ARN to use for CloudWatch log group encryption" 286 | type = string 287 | default = null 288 | } 289 | -------------------------------------------------------------------------------- /modules/log_forwarder/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 1.3" 3 | 4 | required_providers { 5 | aws = { 6 | source = "hashicorp/aws" 7 | version = ">= 5.0" 8 | } 9 | null = { 10 | source = "hashicorp/null" 11 | version = ">= 3.0" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/README.md: -------------------------------------------------------------------------------- 1 | # AWS Datadog RDS Enhanced Monitoring Forwarder Terraform module 2 | 3 | Terraform module which process a RDS enhanced monitoring DATA_MESSAGE, coming from CloudWatch logs and forwards to Datadog. 4 | 5 | ## Usage 6 | 7 | ```hcl 8 | # Note: you will need to create this secret manually prior to running 9 | # This avoids having to pass the key to Terraform in plaintext 10 | data "aws_secretsmanager_secret" "datadog_api_key" { 11 | name = "datadog/api_key" 12 | } 13 | 14 | module "datadog_rds_enhanced_monitoring_forwarder" { 15 | source = "terraform-aws-modules/datadog-forwarders/aws//modules/rds_enhanced_monitoring_forwarder" 16 | 17 | kms_alias = "alias/datadog" # KMS key will need to be created outside of module 18 | dd_api_key_secret_arn = data.aws_secretsmanager_secret.datadog_api_key.arn 19 | 20 | tags = { 21 | Terraform = "true" 22 | Environment = "dev" 23 | } 24 | } 25 | ``` 26 | 27 | 28 | ## Requirements 29 | 30 | | Name | Version | 31 | |------|---------| 32 | | [terraform](#requirement\_terraform) | >= 1.3 | 33 | | [aws](#requirement\_aws) | >= 5.0 | 34 | 35 | ## Providers 36 | 37 | | Name | Version | 38 | |------|---------| 39 | | [aws](#provider\_aws) | >= 5.0 | 40 | 41 | ## Modules 42 | 43 | No modules. 44 | 45 | ## Resources 46 | 47 | | Name | Type | 48 | |------|------| 49 | | [aws_cloudwatch_log_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | 50 | | [aws_iam_policy.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource | 51 | | [aws_iam_role.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | 52 | | [aws_iam_role_policy_attachment.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | 53 | | [aws_lambda_function.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource | 54 | | [aws_lambda_permission.cloudwatch](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource | 55 | | [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | 56 | | [aws_iam_policy_document.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | 57 | | [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | 58 | 59 | ## Inputs 60 | 61 | | Name | Description | Type | Default | Required | 62 | |------|-------------|------|---------|:--------:| 63 | | [architectures](#input\_architectures) | Instruction set architecture for your Lambda function. Valid values are `["x86_64"]` and `["arm64"]`. Default is `["x86_64"]` | `list(string)` |
[| no | 64 | | [create](#input\_create) | Controls whether the forwarder resources should be created | `bool` | `true` | no | 65 | | [create\_role](#input\_create\_role) | Controls whether an IAM role is created for the forwarder | `bool` | `true` | no | 66 | | [create\_role\_policy](#input\_create\_role\_policy) | Controls whether an IAM role policy is created for the forwarder | `bool` | `true` | no | 67 | | [dd\_api\_key](#input\_dd\_api\_key) | The Datadog API key, which can be found from the APIs page (/account/settings#api). It will be stored in AWS Secrets Manager securely | `string` | `""` | no | 68 | | [dd\_api\_key\_secret\_arn](#input\_dd\_api\_key\_secret\_arn) | The ARN of the Secrets Manager secret storing the Datadog API key, if you already have it stored in Secrets Manager | `string` | `""` | no | 69 | | [dd\_site](#input\_dd\_site) | Define your Datadog Site to send data to. For the Datadog EU site, set to datadoghq.eu | `string` | `"datadoghq.com"` | no | 70 | | [environment\_variables](#input\_environment\_variables) | A map of environment variables for the forwarder lambda function | `map(string)` | `{}` | no | 71 | | [forwarder\_version](#input\_forwarder\_version) | Forwarder version - see https://github.com/DataDog/datadog-serverless-functions/releases | `string` | `"3.130.0"` | no | 72 | | [kms\_key\_arn](#input\_kms\_key\_arn) | KMS key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key | `string` | `null` | no | 73 | | [lambda\_tags](#input\_lambda\_tags) | A map of tags to apply to the forwarder lambda function | `map(string)` | `{}` | no | 74 | | [layers](#input\_layers) | List of Lambda Layer Version ARNs (maximum of 5) to attach to the forwarder lambda | `list(string)` | `[]` | no | 75 | | [log\_kms\_key\_id](#input\_log\_kms\_key\_id) | The AWS KMS Key ARN to use for CloudWatch log group encryption | `string` | `null` | no | 76 | | [log\_retention\_days](#input\_log\_retention\_days) | Forwarder CloudWatch log group retention in days | `number` | `7` | no | 77 | | [memory\_size](#input\_memory\_size) | Memory size for the forwarder lambda function | `number` | `256` | no | 78 | | [name](#input\_name) | Forwarder lambda name | `string` | `"datadog-rds-enhanced-monitoring-forwarder"` | no | 79 | | [policy\_arn](#input\_policy\_arn) | IAM policy arn for forwarder lambda function to utilize | `string` | `null` | no | 80 | | [policy\_name](#input\_policy\_name) | Forwarder policy name | `string` | `""` | no | 81 | | [policy\_path](#input\_policy\_path) | Forwarder policy path | `string` | `null` | no | 82 | | [publish](#input\_publish) | Whether to publish creation/change as a new Lambda Function Version | `bool` | `false` | no | 83 | | [reserved\_concurrent\_executions](#input\_reserved\_concurrent\_executions) | The amount of reserved concurrent executions for the forwarder lambda function | `number` | `10` | no | 84 | | [role\_arn](#input\_role\_arn) | IAM role arn for forwarder lambda function to utilize | `string` | `null` | no | 85 | | [role\_max\_session\_duration](#input\_role\_max\_session\_duration) | The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. | `number` | `null` | no | 86 | | [role\_name](#input\_role\_name) | Forwarder role name | `string` | `""` | no | 87 | | [role\_path](#input\_role\_path) | Forwarder role path | `string` | `null` | no | 88 | | [role\_permissions\_boundary](#input\_role\_permissions\_boundary) | The ARN of the policy that is used to set the permissions boundary for the forwarder role. | `string` | `null` | no | 89 | | [role\_tags](#input\_role\_tags) | A map of tags to apply to the forwarder role | `map(string)` | `{}` | no | 90 | | [runtime](#input\_runtime) | Lambda function runtime | `string` | `"python3.11"` | no | 91 | | [security\_group\_ids](#input\_security\_group\_ids) | List of security group ids when Lambda Function should run in the VPC. | `list(string)` | `null` | no | 92 | | [subnet\_ids](#input\_subnet\_ids) | List of subnet ids when Lambda Function should run in the VPC. Usually private or intra subnets. | `list(string)` | `null` | no | 93 | | [tags](#input\_tags) | A map of tags to use on all resources | `map(string)` | `{}` | no | 94 | | [timeout](#input\_timeout) | The amount of time the forwarder lambda has to execute in seconds | `number` | `10` | no | 95 | | [use\_policy\_name\_prefix](#input\_use\_policy\_name\_prefix) | Whether to use unique name beginning with the specified `policy_name` for the forwarder policy | `bool` | `false` | no | 96 | | [use\_role\_name\_prefix](#input\_use\_role\_name\_prefix) | Whether to use unique name beginning with the specified `role_name` for the forwarder role | `bool` | `false` | no | 97 | 98 | ## Outputs 99 | 100 | | Name | Description | 101 | |------|-------------| 102 | | [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | The ARN of the forwarder lambda function CloudWatch log group | 103 | | [lambda\_arn](#output\_lambda\_arn) | The ARN of the forwarder lambda function | 104 | | [lambda\_kms\_key\_arn](#output\_lambda\_kms\_key\_arn) | (Optional) The ARN for the KMS encryption key for the forwarder lambda function | 105 | | [lambda\_qualified\_arn](#output\_lambda\_qualified\_arn) | The ARN of the forwarder lambda function (if versioning is enabled via publish = true) | 106 | | [lambda\_source\_code\_hash](#output\_lambda\_source\_code\_hash) | Base64-encoded representation of raw SHA-256 sum of the zip file, provided either via filename or s3\_* parameters | 107 | | [lambda\_version](#output\_lambda\_version) | Latest published version of the forwarder lambda function | 108 | | [role\_arn](#output\_role\_arn) | The forwarder lambda role arn | 109 | | [role\_id](#output\_role\_id) | The forwarder lambda role id | 110 | | [role\_name](#output\_role\_name) | The forwarder lambda role name | 111 | | [role\_policy\_arn](#output\_role\_policy\_arn) | The ARN of the forwarder lambda role policy | 112 | | [role\_policy\_id](#output\_role\_policy\_id) | The ID of the forwarder lambda role policy | 113 | | [role\_policy\_name](#output\_role\_policy\_name) | The name of the forwarder lambda role policy | 114 | | [role\_unique\_id](#output\_role\_unique\_id) | The stable and unique string identifying the forwarder lambda role | 115 | 116 | 117 | ## License 118 | 119 | Apache-2.0 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/blob/master/LICENSE). 120 | -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/main.tf: -------------------------------------------------------------------------------- 1 | locals { 2 | dd_api_key = var.dd_api_key != "" ? { DD_API_KEY = var.dd_api_key } : {} 3 | dd_api_key_secret_arn = var.dd_api_key_secret_arn != "" ? { DD_API_KEY_SECRET_ARN = var.dd_api_key_secret_arn } : {} 4 | 5 | description = "Lambda function to push RDS Enhanced metrics to Datadog" 6 | version_tag = { DD_FORWARDER_VERSION = var.forwarder_version } 7 | 8 | role_name = coalesce(var.role_name, var.name) 9 | policy_name = coalesce(var.policy_name, var.name) 10 | } 11 | 12 | data "aws_caller_identity" "current" {} 13 | data "aws_region" "current" {} 14 | 15 | ################################################################################ 16 | # Forwarder IAM Role 17 | ################################################################################ 18 | 19 | data "aws_iam_policy_document" "this" { 20 | statement { 21 | actions = [ 22 | "sts:AssumeRole", 23 | ] 24 | 25 | principals { 26 | type = "Service" 27 | identifiers = ["lambda.amazonaws.com"] 28 | } 29 | } 30 | } 31 | 32 | resource "aws_iam_role" "this" { 33 | count = var.create && var.create_role ? 1 : 0 34 | 35 | name = var.use_role_name_prefix ? null : local.role_name 36 | name_prefix = var.use_role_name_prefix ? "${local.role_name}-" : null 37 | description = local.description 38 | path = var.role_path 39 | 40 | assume_role_policy = data.aws_iam_policy_document.this.json 41 | max_session_duration = var.role_max_session_duration 42 | permissions_boundary = var.role_permissions_boundary 43 | force_detach_policies = true 44 | 45 | tags = merge(var.tags, var.role_tags) 46 | } 47 | 48 | resource "aws_iam_policy" "this" { 49 | count = var.create && var.create_role_policy ? 1 : 0 50 | 51 | name = var.use_policy_name_prefix ? null : local.policy_name 52 | name_prefix = var.use_policy_name_prefix ? "${local.policy_name}-" : null 53 | description = local.description 54 | path = var.policy_path 55 | 56 | policy = templatefile( 57 | "${path.module}/policy.tmpl", 58 | { 59 | vpc_check = var.subnet_ids != null 60 | dd_api_key_secret_arn = var.dd_api_key_secret_arn 61 | } 62 | ) 63 | 64 | tags = var.tags 65 | } 66 | 67 | resource "aws_iam_role_policy_attachment" "this" { 68 | count = var.create && var.create_role ? 1 : 0 69 | 70 | role = aws_iam_role.this[0].id 71 | policy_arn = var.create_role_policy ? aws_iam_policy.this[0].id : var.policy_arn 72 | } 73 | 74 | ################################################################################ 75 | # Forwarder Lambda Function 76 | ################################################################################ 77 | 78 | resource "aws_lambda_function" "this" { 79 | count = var.create ? 1 : 0 80 | 81 | filename = "${path.module}/vendored_archives/${var.forwarder_version}.zip" 82 | function_name = var.name 83 | handler = "lambda_function.lambda_handler" 84 | 85 | role = var.create_role ? aws_iam_role.this[0].arn : var.role_arn 86 | description = local.description 87 | runtime = var.runtime 88 | layers = var.layers 89 | memory_size = var.memory_size 90 | timeout = var.timeout 91 | publish = var.publish 92 | architectures = var.architectures 93 | 94 | reserved_concurrent_executions = var.reserved_concurrent_executions 95 | kms_key_arn = var.kms_key_arn 96 | 97 | dynamic "vpc_config" { 98 | for_each = var.subnet_ids != null && var.security_group_ids != null ? [true] : [] 99 | content { 100 | security_group_ids = var.security_group_ids 101 | subnet_ids = var.subnet_ids 102 | } 103 | } 104 | 105 | environment { 106 | variables = merge( 107 | local.dd_api_key, 108 | local.dd_api_key_secret_arn, 109 | { 110 | DD_SITE = var.dd_site 111 | }, 112 | var.environment_variables, 113 | local.version_tag 114 | ) 115 | } 116 | 117 | tags = merge(var.tags, var.lambda_tags, local.version_tag) 118 | } 119 | 120 | resource "aws_lambda_permission" "cloudwatch" { 121 | count = var.create ? 1 : 0 122 | 123 | statement_id = "datadog-forwarder-RDSCloudWatchLogsPermission" 124 | action = "lambda:InvokeFunction" 125 | function_name = aws_lambda_function.this[0].function_name 126 | principal = "logs.amazonaws.com" 127 | source_arn = "arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:log-group:RDSOSMetrics:*" 128 | } 129 | 130 | resource "aws_cloudwatch_log_group" "this" { 131 | count = var.create ? 1 : 0 132 | 133 | name = "/aws/lambda/${aws_lambda_function.this[0].function_name}" 134 | retention_in_days = var.log_retention_days 135 | kms_key_id = var.log_kms_key_id 136 | 137 | tags = var.tags 138 | } 139 | -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/outputs.tf: -------------------------------------------------------------------------------- 1 | # Forwarder role 2 | output "role_arn" { 3 | description = "The forwarder lambda role arn" 4 | value = try(aws_iam_role.this[0].arn, "") 5 | } 6 | 7 | output "role_id" { 8 | description = "The forwarder lambda role id" 9 | value = try(aws_iam_role.this[0].id, "") 10 | } 11 | 12 | output "role_name" { 13 | description = "The forwarder lambda role name" 14 | value = try(aws_iam_role.this[0].name, "") 15 | } 16 | 17 | output "role_unique_id" { 18 | description = "The stable and unique string identifying the forwarder lambda role" 19 | value = try(aws_iam_role.this[0].unique_id, "") 20 | } 21 | 22 | output "role_policy_arn" { 23 | description = "The ARN of the forwarder lambda role policy" 24 | value = try(aws_iam_policy.this[0].arn, "") 25 | } 26 | 27 | output "role_policy_id" { 28 | description = "The ID of the forwarder lambda role policy" 29 | value = try(aws_iam_policy.this[0].id, "") 30 | } 31 | 32 | output "role_policy_name" { 33 | description = "The name of the forwarder lambda role policy" 34 | value = try(aws_iam_policy.this[0].name, "") 35 | } 36 | 37 | # Forwarder Lambda Function 38 | output "lambda_arn" { 39 | description = "The ARN of the forwarder lambda function" 40 | value = try(aws_lambda_function.this[0].arn, "") 41 | } 42 | 43 | output "lambda_qualified_arn" { 44 | description = "The ARN of the forwarder lambda function (if versioning is enabled via publish = true)" 45 | value = try(aws_lambda_function.this[0].qualified_arn, "") 46 | } 47 | 48 | output "lambda_version" { 49 | description = "Latest published version of the forwarder lambda function" 50 | value = try(aws_lambda_function.this[0].version, "") 51 | } 52 | 53 | output "lambda_kms_key_arn" { 54 | description = "(Optional) The ARN for the KMS encryption key for the forwarder lambda function" 55 | value = try(aws_lambda_function.this[0].kms_key_arn, "") 56 | } 57 | 58 | output "lambda_source_code_hash" { 59 | description = "Base64-encoded representation of raw SHA-256 sum of the zip file, provided either via filename or s3_* parameters" 60 | value = try(aws_lambda_function.this[0].source_code_hash, "") 61 | } 62 | 63 | # Forwarder CloudWatch Logs 64 | output "cloudwatch_log_group_arn" { 65 | description = "The ARN of the forwarder lambda function CloudWatch log group" 66 | value = try(aws_cloudwatch_log_group.this[0].arn, "") 67 | } 68 | -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/policy.tmpl: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "2012-10-17", 3 | "Statement": [{ 4 | "Action": [ 5 | "logs:CreateLogGroup", 6 | "logs:CreateLogStream", 7 | "logs:ListTagsLogGroup", 8 | "logs:PutLogEvents"%{ if vpc_check }, 9 | "ec2:CreateNetworkInterface", 10 | "ec2:DescribeNetworkInterfaces", 11 | "ec2:DeleteNetworkInterface"%{ endif } 12 | ], 13 | "Effect": "Allow", 14 | "Resource": "*", 15 | "Sid": "WriteLogs" 16 | }, 17 | { 18 | "Action": "kms:Decrypt", 19 | "Effect": "Allow", 20 | "Resource": "*", 21 | "Sid": "KmsDecrypt" 22 | }%{ if dd_api_key_secret_arn != "" }, 23 | { 24 | "Action": "secretsmanager:GetSecretValue", 25 | "Effect": "Allow", 26 | "Resource": "${dd_api_key_secret_arn}", 27 | "Sid": "GetApiKeySecret" 28 | }%{ endif } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/variables.tf: -------------------------------------------------------------------------------- 1 | variable "create" { 2 | description = "Controls whether the forwarder resources should be created" 3 | type = bool 4 | default = true 5 | } 6 | 7 | variable "tags" { 8 | description = "A map of tags to use on all resources" 9 | type = map(string) 10 | default = {} 11 | } 12 | 13 | # Datadog environment Variables 14 | variable "dd_api_key" { 15 | description = "The Datadog API key, which can be found from the APIs page (/account/settings#api). It will be stored in AWS Secrets Manager securely" 16 | type = string 17 | default = "" 18 | } 19 | 20 | variable "dd_api_key_secret_arn" { 21 | description = "The ARN of the Secrets Manager secret storing the Datadog API key, if you already have it stored in Secrets Manager" 22 | type = string 23 | default = "" 24 | } 25 | 26 | variable "dd_site" { 27 | description = "Define your Datadog Site to send data to. For the Datadog EU site, set to datadoghq.eu" 28 | type = string 29 | default = "datadoghq.com" 30 | } 31 | 32 | # Forwarder IAM Role 33 | variable "create_role" { 34 | description = "Controls whether an IAM role is created for the forwarder" 35 | type = bool 36 | default = true 37 | } 38 | 39 | variable "role_arn" { 40 | description = "IAM role arn for forwarder lambda function to utilize" 41 | type = string 42 | default = null 43 | } 44 | 45 | variable "role_name" { 46 | description = "Forwarder role name" 47 | type = string 48 | default = "" 49 | } 50 | 51 | variable "use_role_name_prefix" { 52 | description = "Whether to use unique name beginning with the specified `role_name` for the forwarder role" 53 | type = bool 54 | default = false 55 | } 56 | 57 | variable "role_path" { 58 | description = "Forwarder role path" 59 | type = string 60 | default = null 61 | } 62 | 63 | variable "role_max_session_duration" { 64 | description = "The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours." 65 | type = number 66 | default = null 67 | } 68 | 69 | variable "role_permissions_boundary" { 70 | description = "The ARN of the policy that is used to set the permissions boundary for the forwarder role." 71 | type = string 72 | default = null 73 | } 74 | 75 | variable "role_tags" { 76 | description = "A map of tags to apply to the forwarder role" 77 | type = map(string) 78 | default = {} 79 | } 80 | 81 | variable "create_role_policy" { 82 | description = "Controls whether an IAM role policy is created for the forwarder" 83 | type = bool 84 | default = true 85 | } 86 | 87 | variable "policy_arn" { 88 | description = "IAM policy arn for forwarder lambda function to utilize" 89 | type = string 90 | default = null 91 | } 92 | 93 | variable "policy_name" { 94 | description = "Forwarder policy name" 95 | type = string 96 | default = "" 97 | } 98 | 99 | variable "use_policy_name_prefix" { 100 | description = "Whether to use unique name beginning with the specified `policy_name` for the forwarder policy" 101 | type = bool 102 | default = false 103 | } 104 | 105 | variable "policy_path" { 106 | description = "Forwarder policy path" 107 | type = string 108 | default = null 109 | } 110 | 111 | # Forwarder Lambda Function 112 | variable "forwarder_version" { 113 | description = "Forwarder version - see https://github.com/DataDog/datadog-serverless-functions/releases" 114 | type = string 115 | default = "3.130.0" 116 | } 117 | 118 | variable "name" { 119 | description = "Forwarder lambda name" 120 | type = string 121 | default = "datadog-rds-enhanced-monitoring-forwarder" 122 | } 123 | 124 | variable "runtime" { 125 | description = "Lambda function runtime" 126 | type = string 127 | default = "python3.11" 128 | } 129 | 130 | variable "layers" { 131 | description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to the forwarder lambda" 132 | type = list(string) 133 | default = [] 134 | } 135 | 136 | variable "memory_size" { 137 | description = "Memory size for the forwarder lambda function" 138 | type = number 139 | default = 256 140 | } 141 | 142 | variable "timeout" { 143 | description = "The amount of time the forwarder lambda has to execute in seconds" 144 | type = number 145 | default = 10 146 | } 147 | 148 | variable "publish" { 149 | description = "Whether to publish creation/change as a new Lambda Function Version" 150 | type = bool 151 | default = false 152 | } 153 | 154 | variable "architectures" { 155 | description = "Instruction set architecture for your Lambda function. Valid values are `[\"x86_64\"]` and `[\"arm64\"]`. Default is `[\"x86_64\"]`" 156 | type = list(string) 157 | default = ["x86_64"] 158 | } 159 | 160 | variable "reserved_concurrent_executions" { 161 | description = "The amount of reserved concurrent executions for the forwarder lambda function" 162 | type = number 163 | default = 10 164 | } 165 | 166 | variable "kms_key_arn" { 167 | description = "KMS key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key" 168 | type = string 169 | default = null 170 | } 171 | 172 | variable "subnet_ids" { 173 | description = "List of subnet ids when Lambda Function should run in the VPC. Usually private or intra subnets." 174 | type = list(string) 175 | default = null 176 | } 177 | 178 | variable "security_group_ids" { 179 | description = "List of security group ids when Lambda Function should run in the VPC." 180 | type = list(string) 181 | default = null 182 | } 183 | 184 | variable "environment_variables" { 185 | description = "A map of environment variables for the forwarder lambda function" 186 | type = map(string) 187 | default = {} 188 | } 189 | 190 | variable "lambda_tags" { 191 | description = "A map of tags to apply to the forwarder lambda function" 192 | type = map(string) 193 | default = {} 194 | } 195 | 196 | variable "log_retention_days" { 197 | description = "Forwarder CloudWatch log group retention in days" 198 | type = number 199 | default = 7 200 | } 201 | 202 | variable "log_kms_key_id" { 203 | description = "The AWS KMS Key ARN to use for CloudWatch log group encryption" 204 | type = string 205 | default = null 206 | } 207 | -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.0.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.0.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.1.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.1.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.10.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.10.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.100.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.100.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.103.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.103.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.105.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.105.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.106.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.106.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.108.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.108.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.11.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.11.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.110.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.110.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.111.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.111.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.112.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.112.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.113.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.113.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.114.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.114.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.115.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.115.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.116.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.116.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.117.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.117.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.118.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.118.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.12.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.12.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.120.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.120.1.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.121.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.121.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.122.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.122.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.123.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.123.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.124.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.124.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.127.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.127.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.128.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.128.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.129.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.129.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.13.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.13.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.130.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.130.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.14.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.14.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.15.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.15.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.1.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.2.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.3.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.16.4.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.17.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.17.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.18.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.18.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.18.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.18.1.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.18.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.18.2.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.19.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.19.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.2.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.2.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.20.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.20.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.1.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.2.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.3.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.4.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.21.5.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.22.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.22.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.23.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.23.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.24.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.24.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.25.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.25.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.26.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.26.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.27.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.27.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.1.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.2.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.3.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.4.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.28.5.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.29.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.29.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.3.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.3.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.30.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.30.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.31.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.31.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.32.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.32.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.33.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.33.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.34.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.34.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.35.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.35.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.36.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.36.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.37.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.37.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.38.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.38.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.39.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.39.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.39.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.39.1.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.4.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.4.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.40.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.40.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.41.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.41.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.42.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.42.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.43.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.43.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.44.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.44.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.45.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.45.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.46.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.46.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.47.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.47.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.48.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.48.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.49.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.49.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.5.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.5.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.50.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.50.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.51.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.51.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.52.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.52.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.53.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.53.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.55.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.55.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.58.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.58.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.59.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.59.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.6.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.6.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.60.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.60.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.61.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.61.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.62.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.62.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.64.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.64.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.65.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.65.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.66.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.66.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.69.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.69.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.7.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.7.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.71.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.71.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.73.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.73.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.74.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.74.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.75.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.75.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.76.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.76.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.77.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.77.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.79.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.79.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.8.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.8.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.80.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.80.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.81.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.81.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.83.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.83.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.86.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.86.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.87.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.87.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.88.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.88.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.9.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.9.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.91.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.91.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.92.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.92.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.95.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.95.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.96.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.96.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.97.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.97.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.98.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.98.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.99.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-aws-modules/terraform-aws-datadog-forwarders/a083762073a21126e1376261da9171aabf2a27c3/modules/rds_enhanced_monitoring_forwarder/vendored_archives/3.99.0.zip -------------------------------------------------------------------------------- /modules/rds_enhanced_monitoring_forwarder/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 1.3" 3 | 4 | required_providers { 5 | aws = { 6 | source = "hashicorp/aws" 7 | version = ">= 5.0" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /modules/vpc_flow_log_forwarder/README.md: -------------------------------------------------------------------------------- 1 | # AWS Datadog VPC Flow Log Monitoring Terraform module 2 | 3 | Terraform module which process a VPC flow log monitoring DATA_MESSAGE, coming from CloudWatch logs. 4 | 5 | ## Usage 6 | 7 | ```hcl 8 | # Note: you will need to create this secret manually prior to running 9 | # This avoids having to pass the key to Terraform in plaintext 10 | data "aws_secretsmanager_secret" "datadog_api_key" { 11 | name = "datadog/api_key" 12 | } 13 | 14 | module "datadog_vpc_flow_log_forwarder" { 15 | source = "terraform-aws-modules/datadog-forwarders/aws//modules/vpc_flow_log_forwarder" 16 | 17 | kms_alias = "alias/datadog" # KMS key will need to be created outside of module 18 | dd_api_key_secret_arn = data.aws_secretsmanager_secret.datadog_api_key.arn 19 | 20 | tags = { 21 | Terraform = "true" 22 | Environment = "dev" 23 | } 24 | } 25 | ``` 26 | 27 | 28 | ## Requirements 29 | 30 | | Name | Version | 31 | |------|---------| 32 | | [terraform](#requirement\_terraform) | >= 1.3 | 33 | | [aws](#requirement\_aws) | >= 5.0 | 34 | 35 | ## Providers 36 | 37 | | Name | Version | 38 | |------|---------| 39 | | [aws](#provider\_aws) | >= 5.0 | 40 | 41 | ## Modules 42 | 43 | No modules. 44 | 45 | ## Resources 46 | 47 | | Name | Type | 48 | |------|------| 49 | | [aws_cloudwatch_log_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | 50 | | [aws_iam_policy.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource | 51 | | [aws_iam_role.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | 52 | | [aws_iam_role_policy_attachment.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | 53 | | [aws_kms_ciphertext.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_ciphertext) | resource | 54 | | [aws_lambda_function.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource | 55 | | [aws_lambda_permission.cloudwatch](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource | 56 | | [aws_lambda_permission.s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource | 57 | | [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | 58 | | [aws_iam_policy_document.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | 59 | | [aws_kms_key.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/kms_key) | data source | 60 | | [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | 61 | | [aws_secretsmanager_secret_version.datadog_api_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/secretsmanager_secret_version) | data source | 62 | 63 | ## Inputs 64 | 65 | | Name | Description | Type | Default | Required | 66 | |------|-------------|------|---------|:--------:| 67 | | [architectures](#input\_architectures) | Instruction set architecture for your Lambda function. Valid values are `["x86_64"]` and `["arm64"]`. Default is `["x86_64"]` | `list(string)` |
"x86_64"
]
[| no | 68 | | [create](#input\_create) | Controls whether the forwarder resources should be created | `bool` | `true` | no | 69 | | [create\_role](#input\_create\_role) | Controls whether an IAM role is created for the forwarder | `bool` | `true` | no | 70 | | [create\_role\_policy](#input\_create\_role\_policy) | Controls whether an IAM role policy is created for the forwarder | `bool` | `true` | no | 71 | | [dd\_api\_key\_secret\_arn](#input\_dd\_api\_key\_secret\_arn) | The ARN of the Secrets Manager secret storing the Datadog API key, if you already have it stored in Secrets Manager | `string` | `""` | no | 72 | | [dd\_app\_key](#input\_dd\_app\_key) | The Datadog application key associated with the user account that created it, which can be found from the APIs page | `string` | `""` | no | 73 | | [dd\_site](#input\_dd\_site) | Define your Datadog Site to send data to. For the Datadog EU site, set to datadoghq.eu | `string` | `"datadoghq.com"` | no | 74 | | [environment\_variables](#input\_environment\_variables) | A map of environment variables for the forwarder lambda function | `map(string)` | `{}` | no | 75 | | [forwarder\_version](#input\_forwarder\_version) | VPC flow log monitoring version - see https://github.com/DataDog/datadog-serverless-functions/releases | `string` | `"3.130.0"` | no | 76 | | [kms\_alias](#input\_kms\_alias) | Alias of KMS key used to encrypt the Datadog API keys - must start with `alias/` | `string` | n/a | yes | 77 | | [kms\_key\_arn](#input\_kms\_key\_arn) | KMS key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key | `string` | `null` | no | 78 | | [lambda\_tags](#input\_lambda\_tags) | A map of tags to apply to the forwarder lambda function | `map(string)` | `{}` | no | 79 | | [layers](#input\_layers) | List of Lambda Layer Version ARNs (maximum of 5) to attach to the forwarder lambda | `list(string)` | `[]` | no | 80 | | [log\_kms\_key\_id](#input\_log\_kms\_key\_id) | The AWS KMS Key ARN to use for CloudWatch log group encryption | `string` | `null` | no | 81 | | [log\_retention\_days](#input\_log\_retention\_days) | Forwarder CloudWatch log group retention in days | `number` | `7` | no | 82 | | [memory\_size](#input\_memory\_size) | Memory size for the forwarder lambda function | `number` | `256` | no | 83 | | [name](#input\_name) | Forwarder lambda name | `string` | `"datadog-vpc-flow-log-forwarder"` | no | 84 | | [policy\_arn](#input\_policy\_arn) | IAM policy arn for forwarder lambda function to utilize | `string` | `null` | no | 85 | | [policy\_name](#input\_policy\_name) | Forwarder policy name | `string` | `""` | no | 86 | | [policy\_path](#input\_policy\_path) | Forwarder policy path | `string` | `null` | no | 87 | | [publish](#input\_publish) | Whether to publish creation/change as a new Lambda Function Version | `bool` | `false` | no | 88 | | [read\_cloudwatch\_logs](#input\_read\_cloudwatch\_logs) | Whether the forwarder will read CloudWatch log groups for VPC flow logs | `bool` | `false` | no | 89 | | [reserved\_concurrent\_executions](#input\_reserved\_concurrent\_executions) | The amount of reserved concurrent executions for the forwarder lambda function | `number` | `10` | no | 90 | | [role\_arn](#input\_role\_arn) | IAM role arn for forwarder lambda function to utilize | `string` | `null` | no | 91 | | [role\_max\_session\_duration](#input\_role\_max\_session\_duration) | The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours | `number` | `null` | no | 92 | | [role\_name](#input\_role\_name) | Forwarder role name | `string` | `""` | no | 93 | | [role\_path](#input\_role\_path) | Forwarder role path | `string` | `null` | no | 94 | | [role\_permissions\_boundary](#input\_role\_permissions\_boundary) | The ARN of the policy that is used to set the permissions boundary for the forwarder role | `string` | `null` | no | 95 | | [role\_tags](#input\_role\_tags) | A map of tags to apply to the forwarder role | `map(string)` | `{}` | no | 96 | | [runtime](#input\_runtime) | Lambda function runtime | `string` | `"python3.11"` | no | 97 | | [s3\_log\_bucket\_arns](#input\_s3\_log\_bucket\_arns) | S3 log buckets for forwarder to read and forward VPC flow logs to Datadog | `list(string)` | `[]` | no | 98 | | [security\_group\_ids](#input\_security\_group\_ids) | List of security group ids when Lambda Function should run in the VPC | `list(string)` | `null` | no | 99 | | [subnet\_ids](#input\_subnet\_ids) | List of subnet ids when Lambda Function should run in the VPC. Usually private or intra subnets | `list(string)` | `null` | no | 100 | | [tags](#input\_tags) | A map of tags to use on all resources | `map(string)` | `{}` | no | 101 | | [timeout](#input\_timeout) | The amount of time the forwarder lambda has to execute in seconds | `number` | `10` | no | 102 | | [use\_policy\_name\_prefix](#input\_use\_policy\_name\_prefix) | Whether to use unique name beginning with the specified `policy_name` for the forwarder policy | `bool` | `false` | no | 103 | | [use\_role\_name\_prefix](#input\_use\_role\_name\_prefix) | Whether to use unique name beginning with the specified `role_name` for the forwarder role | `bool` | `false` | no | 104 | 105 | ## Outputs 106 | 107 | | Name | Description | 108 | |------|-------------| 109 | | [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | The ARN of the forwarder lambda function CloudWatch log group | 110 | | [lambda\_arn](#output\_lambda\_arn) | The ARN of the forwarder lambda function | 111 | | [lambda\_kms\_key\_arn](#output\_lambda\_kms\_key\_arn) | (Optional) The ARN for the KMS encryption key for the forwarder lambda function | 112 | | [lambda\_qualified\_arn](#output\_lambda\_qualified\_arn) | The ARN of the forwarder lambda function (if versioning is enabled via publish = true) | 113 | | [lambda\_source\_code\_hash](#output\_lambda\_source\_code\_hash) | Base64-encoded representation of raw SHA-256 sum of the zip file, provided either via filename or s3\_* parameters | 114 | | [lambda\_version](#output\_lambda\_version) | Latest published version of the forwarder lambda function | 115 | | [role\_arn](#output\_role\_arn) | The forwarder lambda role arn | 116 | | [role\_id](#output\_role\_id) | The forwarder lambda role id | 117 | | [role\_name](#output\_role\_name) | The forwarder lambda role name | 118 | | [role\_policy\_arn](#output\_role\_policy\_arn) | The ARN of the forwarder lambda role policy | 119 | | [role\_policy\_id](#output\_role\_policy\_id) | The ID of the forwarder lambda role policy | 120 | | [role\_policy\_name](#output\_role\_policy\_name) | The name of the forwarder lambda role policy | 121 | | [role\_unique\_id](#output\_role\_unique\_id) | The stable and unique string identifying the forwarder lambda role | 122 | 123 | 124 | Apache-2.0 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-aws-datadog-forwarders/blob/master/LICENSE). 125 | -------------------------------------------------------------------------------- /modules/vpc_flow_log_forwarder/main.tf: -------------------------------------------------------------------------------- 1 | locals { 2 | description = "Lambda function to push VPC flow log metrics to Datadog" 3 | version_tag = { DD_FORWARDER_VERSION = var.forwarder_version } 4 | 5 | role_name = coalesce(var.role_name, var.name) 6 | policy_name = coalesce(var.policy_name, var.name) 7 | 8 | dd_api_key = try(data.aws_secretsmanager_secret_version.datadog_api_key[0].secret_string, "") 9 | api_app_key = <
"x86_64"
]