Skip to content

Commit 606b750

Browse files
Qingping Houhouqp
authored andcommitted
docs: update source reference to use terraform registry
also add badges in readme
1 parent 091715d commit 606b750

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/terraform_and_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Terraform and Release'
1+
name: 'CICD'
22
on:
33
push:
44
pull_request:

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# terraform-aws-datadog
22

3+
[![cicd](https://github.com/scribd/terraform-aws-datadog/workflows/CICD/badge.svg)](https://github.com/scribd/terraform-aws-datadog/actions)
4+
[![terraformregistry](https://img.shields.io/badge/terraform-registry-blueviolet)](https://registry.terraform.io/modules/scribd/datadog/aws)
5+
36
This module configures the AWS / Datadog integration.
47

58
There are two main components:
@@ -20,7 +23,8 @@ There are two main components:
2023

2124
```
2225
module "datadog" {
23-
source = "git::https://github.com/scribd/terraform-aws-datadog.git?ref=master"
26+
source = "scribd/datadog/aws"
27+
version = "~>1"
2428
aws_account_id = data.aws_caller_identity.current.account_id
2529
datadog_api_key = var.datadog_api_key
2630
env = "prod"
@@ -48,7 +52,8 @@ Creating this module in multiple terraform stacks will cause conflicts.
4852

4953
```
5054
module "datadog" {
51-
source = "git::https://github.com/scribd/terraform-aws-datadog.git?ref=master"
55+
source = "scribd/datadog/aws"
56+
version = "~>1"
5257
datadog_api_key = var.datadog_api_key
5358
create_elb_logs_bucket = false
5459
enable_datadog_aws_integration = false

examples/cloudwatch_log_sync/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ provider "aws" {
2323
}
2424

2525
module "datadog" {
26-
source = "../.."
26+
source = "scribd/datadog/aws"
27+
version = "~>1"
2728
datadog_api_key = var.dd_api_key
2829
aws_region = var.aws_region
2930
create_elb_logs_bucket = false

examples/full_integration/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ provider "aws" {
2323
}
2424

2525
module "datadog" {
26-
source = "../.."
26+
source = "scribd/datadog/aws"
27+
version = "~>1"
2728
aws_region = var.aws_region
2829
datadog_api_key = var.dd_api_key
2930
datadog_app_key = var.dd_app_key

0 commit comments

Comments
 (0)