Skip to content

Commit

Permalink
chore: Add tags for OIDC Identity Provider (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: Niek Palm <[email protected]>
  • Loading branch information
amontalban and npalm authored Jul 12, 2024
1 parent 3992720 commit b707fe2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to OIDC identity provider. | `map(string)` | `{}` | no |
| <a name="input_thumbprint_list"></a> [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)` | <pre>[<br> "6938fd4d98bab03faadb97b34396831e3780aea1",<br> "1c58a3a8518e8759bf075b76b750d4f2df264fcd"<br>]</pre> | no |

## Outputs
Expand Down
1 change: 1 addition & 0 deletions modules/provider/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
6 changes: 6 additions & 0 deletions modules/provider/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
}

0 comments on commit b707fe2

Please sign in to comment.