Skip to content

Commit 1b5f215

Browse files
authored
feat: Support aws_opensearch_domain.identity_center_options (#50)
1 parent d9663f1 commit 1b5f215

File tree

13 files changed

+40
-16
lines changed

13 files changed

+40
-16
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ Examples codified under the [`examples`](https://github.com/terraform-aws-module
144144
| Name | Version |
145145
|------|---------|
146146
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
147-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.15 |
147+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.20 |
148148

149149
## Providers
150150

151151
| Name | Version |
152152
|------|---------|
153-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.15 |
153+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.20 |
154154

155155
## Modules
156156

@@ -210,6 +210,7 @@ No modules.
210210
| <a name="input_enable_access_policy"></a> [enable\_access\_policy](#input\_enable\_access\_policy) | Determines whether an access policy will be applied to the domain | `bool` | `true` | no |
211211
| <a name="input_encrypt_at_rest"></a> [encrypt\_at\_rest](#input\_encrypt\_at\_rest) | Configuration block for encrypting at rest | `any` | <pre>{<br/> "enabled": true<br/>}</pre> | no |
212212
| <a name="input_engine_version"></a> [engine\_version](#input\_engine\_version) | Version of the OpenSearch engine to use. Must follow format 'OpenSearch\_X.Y' (e.g., 'OpenSearch\_2.11') | `string` | `null` | no |
213+
| <a name="input_identity_center_options"></a> [identity\_center\_options](#input\_identity\_center\_options) | Configuration block for enabling and managing IAM Identity Center integration within a domain | <pre>object({<br/> enabled_api_access = optional(bool)<br/> identity_center_instance_arn = optional(string)<br/> roles_key = optional(string)<br/> subject_key = optional(string)<br/> })</pre> | `null` | no |
213214
| <a name="input_ip_address_type"></a> [ip\_address\_type](#input\_ip\_address\_type) | The IP address type for the endpoint. Valid values are ipv4 and dualstack | `string` | `null` | no |
214215
| <a name="input_log_publishing_options"></a> [log\_publishing\_options](#input\_log\_publishing\_options) | Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log\_type, within the same resource | `any` | <pre>[<br/> {<br/> "log_type": "INDEX_SLOW_LOGS"<br/> },<br/> {<br/> "log_type": "SEARCH_SLOW_LOGS"<br/> }<br/>]</pre> | no |
215216
| <a name="input_node_to_node_encryption"></a> [node\_to\_node\_encryption](#input\_node\_to\_node\_encryption) | Configuration block for node-to-node encryption options | `any` | <pre>{<br/> "enabled": true<br/>}</pre> | no |

examples/collection/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which will incur monetary charges on
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.15 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.20 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.15 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.20 |
3030

3131
## Modules
3232

examples/collection/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.15"
7+
version = ">= 6.20"
88
}
99
}
1010
}

examples/complete/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ Note that this example may create resources which will incur monetary charges on
2626
| Name | Version |
2727
|------|---------|
2828
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
29-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.15 |
29+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.20 |
3030

3131
## Providers
3232

3333
| Name | Version |
3434
|------|---------|
35-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.15 |
35+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.20 |
3636

3737
## Modules
3838

examples/complete/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.15"
7+
version = ">= 6.20"
88
}
99
}
1010
}

main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,17 @@ resource "aws_opensearch_domain" "this" {
209209
engine_version = var.engine_version
210210
ip_address_type = var.ip_address_type
211211

212+
dynamic "identity_center_options" {
213+
for_each = var.identity_center_options != null ? [var.identity_center_options] : []
214+
215+
content {
216+
enabled_api_access = identity_center_options.value.enabled_api_access
217+
identity_center_instance_arn = identity_center_options.value.identity_center_instance_arn
218+
roles_key = identity_center_options.value.roles_key
219+
subject_key = identity_center_options.value.subject_key
220+
}
221+
}
222+
212223
dynamic "log_publishing_options" {
213224
for_each = { for opt in var.log_publishing_options : opt.log_type => opt }
214225

modules/collection/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ Examples codified under the [`examples`](https://github.com/terraform-aws-module
4242
| Name | Version |
4343
|------|---------|
4444
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
45-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.15 |
45+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.20 |
4646

4747
## Providers
4848

4949
| Name | Version |
5050
|------|---------|
51-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.15 |
51+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.20 |
5252

5353
## Modules
5454

modules/collection/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.15"
7+
version = ">= 6.20"
88
}
99
}
1010
}

variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ variable "ip_address_type" {
124124
default = null
125125
}
126126

127+
variable "identity_center_options" {
128+
description = "Configuration block for enabling and managing IAM Identity Center integration within a domain"
129+
type = object({
130+
enabled_api_access = optional(bool)
131+
identity_center_instance_arn = optional(string)
132+
roles_key = optional(string)
133+
subject_key = optional(string)
134+
})
135+
default = null
136+
}
137+
127138
variable "log_publishing_options" {
128139
description = "Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource"
129140
type = any

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.15"
7+
version = ">= 6.20"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)