Skip to content

Commit

Permalink
Tags and providers (#40)
Browse files Browse the repository at this point in the history
* Tags

* tags

* tags

* Bump providers

* Auto Format

* Add to contributors and rm extra space

* Auto Format

Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
  • Loading branch information
nitrocode and cloudpossebot authored Nov 25, 2021
1 parent 5f5c4e1 commit 373b971
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 38 deletions.
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ lists under "All Permissions" as the maximal set of permissions required, so you
Include this module in your existing terraform code:

```hcl
module "datadog_integration" {
source = "cloudposse/datadog-integration/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
namespace = "eg"
stage = "test"
name = "datadog"
integrations = ["all"]
}
module "datadog_integration" {
source = "cloudposse/datadog-integration/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
namespace = "eg"
stage = "test"
name = "datadog"
integrations = ["all"]
}
```

The DataDog integration will be linked with your configured datadog account via the provider's `api_key`.
Expand Down Expand Up @@ -157,16 +157,15 @@ Available targets:
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.0 |
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 2.13 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 3.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 2.0 |
| <a name="provider_datadog"></a> [datadog](#provider\_datadog) | >= 2.13 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
| <a name="provider_datadog"></a> [datadog](#provider\_datadog) | >= 3.0 |

## Modules

Expand Down Expand Up @@ -380,8 +379,8 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
### Contributors

<!-- markdownlint-disable -->
| [![Sergey Vasilyev][s2504s_avatar]][s2504s_homepage]<br/>[Sergey Vasilyev][s2504s_homepage] | [![Erik Osterman][osterman_avatar]][osterman_homepage]<br/>[Erik Osterman][osterman_homepage] | [![Andriy Knysh][aknysh_avatar]][aknysh_homepage]<br/>[Andriy Knysh][aknysh_homepage] | [![PePe Amengual][jamengual_avatar]][jamengual_homepage]<br/>[PePe Amengual][jamengual_homepage] |
|---|---|---|---|
| [![Sergey Vasilyev][s2504s_avatar]][s2504s_homepage]<br/>[Sergey Vasilyev][s2504s_homepage] | [![Erik Osterman][osterman_avatar]][osterman_homepage]<br/>[Erik Osterman][osterman_homepage] | [![Andriy Knysh][aknysh_avatar]][aknysh_homepage]<br/>[Andriy Knysh][aknysh_homepage] | [![PePe Amengual][jamengual_avatar]][jamengual_homepage]<br/>[PePe Amengual][jamengual_homepage] | [![RB][nitrocode_avatar]][nitrocode_homepage]<br/>[RB][nitrocode_homepage] |
|---|---|---|---|---|
<!-- markdownlint-restore -->

[s2504s_homepage]: https://github.com/s2504s
Expand All @@ -392,6 +391,8 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
[aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png
[jamengual_homepage]: https://github.com/jamengual
[jamengual_avatar]: https://img.cloudposse.com/150x150/https://github.com/jamengual.png
[nitrocode_homepage]: https://github.com/nitrocode
[nitrocode_avatar]: https://img.cloudposse.com/150x150/https://github.com/nitrocode.png

[![README Footer][readme_footer_img]][readme_footer_link]
[![Beacon][beacon]][website]
Expand Down
22 changes: 12 additions & 10 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ usage: |-
Include this module in your existing terraform code:
```hcl
module "datadog_integration" {
source = "cloudposse/datadog-integration/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
namespace = "eg"
stage = "test"
name = "datadog"
integrations = ["all"]
}
module "datadog_integration" {
source = "cloudposse/datadog-integration/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
namespace = "eg"
stage = "test"
name = "datadog"
integrations = ["all"]
}
```
The DataDog integration will be linked with your configured datadog account via the provider's `api_key`.
Expand All @@ -111,3 +111,5 @@ contributors:
github: "aknysh"
- name: "PePe Amengual"
github: "jamengual"
- name: "RB"
github: "nitrocode"
9 changes: 4 additions & 5 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.0 |
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 2.13 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 3.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 2.0 |
| <a name="provider_datadog"></a> [datadog](#provider\_datadog) | >= 2.13 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
| <a name="provider_datadog"></a> [datadog](#provider\_datadog) | >= 3.0 |

## Modules

Expand Down
1 change: 1 addition & 0 deletions iam_policy_all.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ resource "aws_iam_policy" "all" {
count = local.all_count
name = module.all_label.id
policy = join("", data.aws_iam_policy_document.all.*.json)
tags = module.all_label.tags
}

resource "aws_iam_role_policy_attachment" "all" {
Expand Down
1 change: 1 addition & 0 deletions iam_policy_core.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ resource "aws_iam_policy" "core" {
count = local.core_count
name = module.core_label.id
policy = join("", data.aws_iam_policy_document.core.*.json)
tags = module.core_label.tags
}

resource "aws_iam_role_policy_attachment" "core" {
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ resource "aws_iam_role" "default" {
count = local.enabled ? 1 : 0
name = module.this.id
assume_role_policy = join("", data.aws_iam_policy_document.assume_role.*.json)
tags = module.this.tags
}

# https://docs.datadoghq.com/integrations/amazon_web_services/?tab=roledelegation#resource-collection
Expand Down
8 changes: 2 additions & 6 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 2.0"
}
local = {
source = "hashicorp/local"
version = ">= 1.3"
version = ">= 3.0"
}
datadog = {
source = "datadog/datadog"
version = ">= 2.13"
version = ">= 3.0"
}
}
}

0 comments on commit 373b971

Please sign in to comment.