Skip to content

Commit c1aeb3d

Browse files
committed
Merge branch 'master' of github.com:rhythmictech/terraform-aws-datadog
2 parents bf0ec5f + 6f9cac5 commit c1aeb3d

File tree

5 files changed

+49
-44
lines changed

5 files changed

+49
-44
lines changed

.github/workflows/tfsec.yaml

-26
This file was deleted.

.github/workflows/trivy.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: trivy
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
trivy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install prerequisites
14+
run: ./bin/install-ubuntu.sh
15+
- name: Terraform init
16+
run: terraform init --backend=false
17+
- name: Trivy scan
18+
uses: aquasecurity/trivy-action@master
19+
with:
20+
scan-type: 'config'
21+
hide-progress: false
22+
format: 'sarif'
23+
output: 'trivy-results.sarif'
24+
exit-code: '1'
25+
ignore-unfixed: true
26+
severity: 'CRITICAL,HIGH'
27+
28+
- name: Upload Trivy scan results to GitHub Security tab
29+
uses: github/codeql-action/upload-sarif@v2
30+
with:
31+
sarif_file: 'trivy-results.sarif'

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# terraform-aws-datadog
2-
[![tflint](https://github.com/rhythmictech/terraform-aws-datadog/workflows/tflint/badge.svg?branch=master&event=push)](https://github.com/rhythmictech/terraform-aws-datadog/actions?query=workflow%3Atflint+event%3Apush+branch%3Amaster)
3-
[![tfsec](https://github.com/rhythmictech/terraform-aws-datadog/workflows/tfsec/badge.svg?branch=master&event=push)](https://github.com/rhythmictech/terraform-aws-datadog/actions?query=workflow%3Atfsec+event%3Apush+branch%3Amaster)
4-
[![yamllint](https://github.com/rhythmictech/terraform-aws-datadog/workflows/yamllint/badge.svg?branch=master&event=push)](https://github.com/rhythmictech/terraform-aws-datadog/actions?query=workflow%3Ayamllint+event%3Apush+branch%3Amaster)
5-
[![misspell](https://github.com/rhythmictech/terraform-aws-datadog/workflows/misspell/badge.svg?branch=master&event=push)](https://github.com/rhythmictech/terraform-aws-datadog/actions?query=workflow%3Amisspell+event%3Apush+branch%3Amaster)
6-
[![pre-commit-check](https://github.com/rhythmictech/terraform-aws-datadog/workflows/pre-commit-check/badge.svg?branch=master&event=push)](https://github.com/rhythmictech/terraform-aws-datadog/actions?query=workflow%3Apre-commit-check+event%3Apush+branch%3Amaster)
2+
[![tflint](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/tflint.yaml/badge.svg)](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/tflint.yaml)
3+
[![trivy](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/trivy.yaml/badge.svg)](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/trivy.yaml)
4+
[![yamllint](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/yamllint.yaml/badge.svg)](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/yamllint.yaml)
5+
[![misspell](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/misspell.yaml/badge.svg)](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/misspell.yaml)
6+
[![pre-commit-check](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/pre-commit.yaml/badge.svg)](https://github.com/rhythmictech/terraform-aws-datadog/actions/workflows/pre-commit.yaml)
77
<a href="https://twitter.com/intent/follow?screen_name=RhythmicTech"><img src="https://img.shields.io/twitter/follow/RhythmicTech?style=social&logo=twitter" alt="follow on Twitter"></a>
88

99
Creates and manages a Datadog AWS integration. This module performs the necessary integrations in both Datadog and AWS and thus uses providers for each. Supported features include:
@@ -95,8 +95,8 @@ module "datadog" {
9595
|------|---------|
9696
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.5 |
9797
| <a name="requirement_archive"></a> [archive](#requirement\_archive) | >= 2.2.0 |
98-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.62 |
99-
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 3.37 |
98+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.41 |
99+
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 3.39 |
100100
| <a name="requirement_http"></a> [http](#requirement\_http) | >= 3.4 |
101101
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.1.0 |
102102
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.12 |

main.tf

+9-9
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ resource "datadog_api_key" "datadog" {
2929
}
3030

3131
resource "datadog_integration_aws" "datadog" {
32-
account_id = local.account_id
33-
account_specific_namespace_rules = merge(var.integration_default_namespace_rules, var.integration_namespace_rules)
34-
cspm_resource_collection_enabled = var.enable_cspm_resource_collection
35-
excluded_regions = var.integration_excluded_regions
36-
filter_tags = var.integration_filter_tags
37-
host_tags = var.integration_host_tags
38-
metrics_collection_enabled = true
39-
resource_collection_enabled = var.enable_resource_collection
40-
role_name = var.access_method == "role" ? "DatadogIntegrationRole" : null
32+
account_id = local.account_id
33+
account_specific_namespace_rules = merge(var.integration_default_namespace_rules, var.integration_namespace_rules)
34+
cspm_resource_collection_enabled = var.enable_cspm_resource_collection
35+
excluded_regions = var.integration_excluded_regions
36+
filter_tags = var.integration_filter_tags
37+
host_tags = var.integration_host_tags
38+
metrics_collection_enabled = true
39+
extended_resource_collection_enabled = var.enable_resource_collection
40+
role_name = var.access_method == "role" ? "DatadogIntegrationRole" : null
4141

4242
# use iam user for govcloud and china
4343
access_key_id = var.access_method == "user" ? aws_iam_access_key.datadog[0].id : null

versions.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ terraform {
99

1010
aws = {
1111
source = "hashicorp/aws"
12-
version = ">= 4.62"
12+
version = ">= 5.41"
1313
}
1414

1515
datadog = {
1616
source = "datadog/datadog"
17-
version = ">= 3.37"
17+
version = ">= 3.39"
1818
}
1919

2020
http = {

0 commit comments

Comments
 (0)