From b707fe2d3495560278e78e6679ede593fb538e76 Mon Sep 17 00:00:00 2001 From: Andres Montalban Date: Fri, 12 Jul 2024 11:22:48 -0300 Subject: [PATCH] chore: Add tags for OIDC Identity Provider (#85) Co-authored-by: Niek Palm --- modules/provider/README.md | 1 + modules/provider/main.tf | 1 + modules/provider/variables.tf | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/modules/provider/README.md b/modules/provider/README.md index 446bf3f..00f373a 100644 --- a/modules/provider/README.md +++ b/modules/provider/README.md @@ -30,6 +30,7 @@ No modules. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| +| [tags](#input\_tags) | A map of tags to add to OIDC identity provider. | `map(string)` | `{}` | no | | [thumbprint\_list](#input\_thumbprint\_list) | (Optional) A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). | `list(string)` |
[
"6938fd4d98bab03faadb97b34396831e3780aea1",
"1c58a3a8518e8759bf075b76b750d4f2df264fcd"
]
| no | ## Outputs diff --git a/modules/provider/main.tf b/modules/provider/main.tf index 1fa60a9..bdacb3b 100644 --- a/modules/provider/main.tf +++ b/modules/provider/main.tf @@ -2,4 +2,5 @@ resource "aws_iam_openid_connect_provider" "github_actions" { url = "https://token.actions.githubusercontent.com" client_id_list = ["sts.amazonaws.com"] thumbprint_list = var.thumbprint_list + tags = var.tags } diff --git a/modules/provider/variables.tf b/modules/provider/variables.tf index d9e878c..de38a78 100644 --- a/modules/provider/variables.tf +++ b/modules/provider/variables.tf @@ -10,3 +10,9 @@ variable "thumbprint_list" { "1c58a3a8518e8759bf075b76b750d4f2df264fcd" ] } + +variable "tags" { + description = "A map of tags to add to OIDC identity provider." + type = map(string) + default = {} +}