Skip to content

Commit f1e6e53

Browse files
committed
Add AppConfig multi-variate example
1 parent 84cfa19 commit f1e6e53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/docs/r/appconfig_hosted_configuration_version.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ resource "aws_appconfig_hosted_configuration_version" "example" {
7979
}
8080
```
8181

82-
### Multi-variate Feature Flags
82+
### Multi-variant Feature Flags
8383

8484
```terraform
8585
resource "aws_appconfig_hosted_configuration_version" "example" {
8686
application_id = aws_appconfig_application.example.id
8787
configuration_profile_id = aws_appconfig_configuration_profile.example.configuration_profile_id
88-
description = "Example Multi-variate Feature Flag Configuration Version"
88+
description = "Example Multi-variant Feature Flag Configuration Version"
8989
content_type = "application/json"
9090
9191
content = jsonencode({
@@ -97,7 +97,7 @@ resource "aws_appconfig_hosted_configuration_version" "example" {
9797
values = {
9898
loggingenabled = {
9999
_variants = concat([
100-
for user_id in var.appcfg_enableLogging_userIds : {
100+
for user_id in var.appcfg_enableLogging_userIds : { # Flat list of userIds
101101
enabled = true,
102102
name = "usersWithLoggingEnabled_${user_id}",
103103
rule = "(or (eq $userId \"${user_id}\"))"

0 commit comments

Comments
 (0)