Skip to content

Commit 703ae7d

Browse files
Updated with the latest changes from the knowledge base discussions. (#682)
Co-authored-by: docs-sourcer[bot] <99042413+docs-sourcer[bot]@users.noreply.github.com>
1 parent 48d4a5d commit 703ae7d

File tree

6 files changed

+112
-4
lines changed

6 files changed

+112
-4
lines changed

docs/discussions/knowledge-base/137.mdx

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/discussions/knowledge-base/358.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import GitHub from "/src/components/GitHub"
1414
<CenterLayout>
1515
<span className="searchCategory">Knowledge Base</span>
1616
<h1>Status of EKS 1.22 in terraform-aws-service-catalog</h1>
17-
<GitHub discussion={{"id":"D_kwDOF8slf84APS-b","number":358,"author":{"login":"BrianMusson"},"title":"Status of EKS 1.22 in terraform-aws-service-catalog","body":"Hi, AWS released EKS 1.22. I wanted to see if there has been testing with the current catalog or when it will become the new default. Thanks!\r\n\r\nhttps://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.22\r\n[r:terraform-aws-eks](https://github.com/gruntwork-io/terraform-aws-eks)\r\n[r:terraform-aws-service-catalog](https://github.com/gruntwork-io/terraform-aws-service-catalog)","bodyHTML":"<p dir=\"auto\">Hi, AWS released EKS 1.22. I wanted to see if there has been testing with the current catalog or when it will become the new default. Thanks!</p>\n<p dir=\"auto\"><a href=\"https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.22\" rel=\"nofollow\">https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.22</a><br>\n<a href=\"https://github.com/gruntwork-io/terraform-aws-eks\">r:terraform-aws-eks</a><br>\n<a href=\"https://github.com/gruntwork-io/terraform-aws-service-catalog\">r:terraform-aws-service-catalog</a></p>","answer":{"body":"Hi! We'll track progress in https://github.com/gruntwork-io/terraform-aws-eks/issues/430","bodyHTML":"<p dir=\"auto\">Hi! We'll track progress in <a class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"1204649106\" data-permission-text=\"Title is private\" data-url=\"https://github.com/gruntwork-io/terraform-aws-eks/issues/430\" data-hovercard-type=\"issue\" data-hovercard-url=\"/gruntwork-io/terraform-aws-eks/issues/430/hovercard\" href=\"https://github.com/gruntwork-io/terraform-aws-eks/issues/430\">gruntwork-io/terraform-aws-eks#430</a></p>"}}} />
17+
<GitHub discussion={{"id":"D_kwDOF8slf84APS-b","number":358,"author":{"login":"BrianMusson"},"title":"Status of EKS 1.22 in terraform-aws-service-catalog","body":"Hi, AWS released EKS 1.22. I wanted to see if there has been testing with the current catalog or when it will become the new default. Thanks!\r\n\r\nhttps://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.22\r\n[r:terraform-aws-eks](https://github.com/gruntwork-io/terraform-aws-eks)\r\n[r:terraform-aws-service-catalog](https://github.com/gruntwork-io/terraform-aws-service-catalog)","bodyHTML":"<p dir=\"auto\">Hi, AWS released EKS 1.22. I wanted to see if there has been testing with the current catalog or when it will become the new default. Thanks!</p>\n<p dir=\"auto\"><a href=\"https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.22\" rel=\"nofollow\">https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.22</a><br>\n<a href=\"https://github.com/gruntwork-io/terraform-aws-eks\">r:terraform-aws-eks</a><br>\n<a href=\"https://github.com/gruntwork-io/terraform-aws-service-catalog\">r:terraform-aws-service-catalog</a></p>","answer":{"body":"Hi! We'll track progress in https://github.com/gruntwork-io/terraform-aws-eks/issues/430","bodyHTML":"<p dir=\"auto\">Hi! We'll track progress in <a href=\"https://github.com/gruntwork-io/terraform-aws-eks/issues/430\">https://github.com/gruntwork-io/terraform-aws-eks/issues/430</a></p>"}}} />
1818

1919
</CenterLayout>
2020

2121

2222
<!-- ##DOCS-SOURCER-START
2323
{
2424
"sourcePlugin": "github-discussions",
25-
"hash": "54af5ae876708c51b9de5a89610a1c85"
25+
"hash": "8da48a4af59f293bcb637d4f5b20ba71"
2626
}
2727
##DOCS-SOURCER-END -->
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
hide_table_of_contents: true
3+
hide_title: true
4+
custom_edit_url: null
5+
---
6+
7+
import CenterLayout from "/src/components/CenterLayout"
8+
import GitHub from "/src/components/GitHub"
9+
10+
<head>
11+
<link rel="canonical" href="https://github.com/gruntwork-io/knowledge-base/discussions/673" />
12+
</head>
13+
14+
<CenterLayout>
15+
<span className="searchCategory">Knowledge Base</span>
16+
<h1>create multiple instances of modules</h1>
17+
<GitHub discussion={{"id":"D_kwDOF8slf84ASu1F","number":673,"author":{"login":"dbd-infra"},"title":"create multiple instances of modules","body":"\nWe want to use [sqs/sns/sqs-sns-connection modules](https://github.com/gruntwork-io/terraform-aws-messaging/tree/main/modules) to create multiple channels.\r\n\r\nThere is an example how to [use for_eac](https://terragrunt.gruntwork.io/docs/rfc/for_each_iteration/#option-2-for_each-attribute-in-terragrunt-config-that-generates-multiple-copies-of-the-config)h to create multiple copies of config.\r\nIs there a similar way for our purpose or please suggest the best way to configure it.\n\n---\n\n<ins datetime=\"2023-02-28T15:49:17Z\">\n <p><a href=\"https://support.gruntwork.io/hc/requests/109938\">Tracked in ticket #109938</a></p>\n</ins>\n","bodyHTML":"<p dir=\"auto\">We want to use <a href=\"https://github.com/gruntwork-io/terraform-aws-messaging/tree/main/modules\">sqs/sns/sqs-sns-connection modules</a> to create multiple channels.</p>\n<p dir=\"auto\">There is an example how to <a href=\"https://terragrunt.gruntwork.io/docs/rfc/for_each_iteration/#option-2-for_each-attribute-in-terragrunt-config-that-generates-multiple-copies-of-the-config\" rel=\"nofollow\">use for_eac</a>h to create multiple copies of config.<br>\nIs there a similar way for our purpose or please suggest the best way to configure it.</p>\n<hr>\n<ins datetime=\"2023-02-28T15:49:17Z\">\n <p dir=\"auto\"><a href=\"https://support.gruntwork.io/hc/requests/109938\" rel=\"nofollow\">Tracked in ticket #109938</a></p>\n</ins>","answer":{"body":"Hi @dbd-infra, you can use the Terraform `for_each` argument directly with those modules. Here's a (simplified) example:\r\n\r\nThe `locals` block here is just an example input of the `for_each` argument. You could also set this through variables\r\n\r\nThis example will create 3 sets of an SQS queue, SNS topic, and connection.\r\n\r\n```\r\nlocals {\r\n to_create = toset([\"1\",\"2\",\"3\"])\r\n}\r\n\r\nmodule \"sqs\" {\r\n\r\n for_each = local.to_create\r\n\r\n source = \"git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sqs?ref=v0.9.1\"\r\n\r\n name = each.key\r\n}\r\n\r\nmodule \"sns\" {\r\n\r\n for_each = local.to_create\r\n\r\n source = \"git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sns?ref=v0.9.1\"\r\n\r\n name = each.key\r\n}\r\n\r\nmodule \"connection\" {\r\n\r\n for_each = local.to_create\r\n\r\n source = \"git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sns-sqs-connection?ref=v0.9.1\"\r\n\r\n sns_topic_arn = module.sns[each.key].topic_arn\r\n sqs_arn = module.sqs[each.key].queue_arn\r\n sqs_queue_url = module.sqs[each.key].queue_url\r\n}\r\n```\r\n","bodyHTML":"<p dir=\"auto\">Hi <a class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/dbd-infra/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/dbd-infra\">@dbd-infra</a>, you can use the Terraform <code class=\"notranslate\">for_each</code> argument directly with those modules. Here's a (simplified) example:</p>\n<p dir=\"auto\">The <code class=\"notranslate\">locals</code> block here is just an example input of the <code class=\"notranslate\">for_each</code> argument. You could also set this through variables</p>\n<p dir=\"auto\">This example will create 3 sets of an SQS queue, SNS topic, and connection.</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"locals {\n to_create = toset([&quot;1&quot;,&quot;2&quot;,&quot;3&quot;])\n}\n\nmodule &quot;sqs&quot; {\n\n for_each = local.to_create\n\n source = &quot;git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sqs?ref=v0.9.1&quot;\n\n name = each.key\n}\n\nmodule &quot;sns&quot; {\n\n for_each = local.to_create\n\n source = &quot;git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sns?ref=v0.9.1&quot;\n\n name = each.key\n}\n\nmodule &quot;connection&quot; {\n\n for_each = local.to_create\n\n source = &quot;git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sns-sqs-connection?ref=v0.9.1&quot;\n\n sns_topic_arn = module.sns[each.key].topic_arn\n sqs_arn = module.sqs[each.key].queue_arn\n sqs_queue_url = module.sqs[each.key].queue_url\n}\"><pre class=\"notranslate\"><code class=\"notranslate\">locals {\n to_create = toset([\"1\",\"2\",\"3\"])\n}\n\nmodule \"sqs\" {\n\n for_each = local.to_create\n\n source = \"git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sqs?ref=v0.9.1\"\n\n name = each.key\n}\n\nmodule \"sns\" {\n\n for_each = local.to_create\n\n source = \"git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sns?ref=v0.9.1\"\n\n name = each.key\n}\n\nmodule \"connection\" {\n\n for_each = local.to_create\n\n source = \"git::[email protected]:gruntwork-io/terraform-aws-messaging.git//modules/sns-sqs-connection?ref=v0.9.1\"\n\n sns_topic_arn = module.sns[each.key].topic_arn\n sqs_arn = module.sqs[each.key].queue_arn\n sqs_queue_url = module.sqs[each.key].queue_url\n}\n</code></pre></div>"}}} />
18+
19+
</CenterLayout>
20+
21+
22+
<!-- ##DOCS-SOURCER-START
23+
{
24+
"sourcePlugin": "github-discussions",
25+
"hash": "76fe094c0a81167605365c09ffc75b6e"
26+
}
27+
##DOCS-SOURCER-END -->
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
hide_table_of_contents: true
3+
hide_title: true
4+
custom_edit_url: null
5+
---
6+
7+
import CenterLayout from "/src/components/CenterLayout"
8+
import GitHub from "/src/components/GitHub"
9+
10+
<head>
11+
<link rel="canonical" href="https://github.com/gruntwork-io/knowledge-base/discussions/676" />
12+
</head>
13+
14+
<CenterLayout>
15+
<span className="searchCategory">Knowledge Base</span>
16+
<h1>How to Use Amazon OpenSearch w/ ElasticSearch Module?</h1>
17+
<GitHub discussion={{"id":"D_kwDOF8slf84AS1jj","number":676,"author":{"login":"hongil0316"},"title":"How to Use Amazon OpenSearch w/ ElasticSearch Module?","body":"\r\nHow do I use Amazon OpenSearch with ElasticSearch module? https://github.com/gruntwork-io/terraform-aws-service-catalog/tree/master/modules/data-stores/elasticsearch\r\n\r\n---\r\n\r\n<ins datetime=\"2023-03-07T15:21:43Z\">\r\n <p><a href=\"https://support.gruntwork.io/hc/requests/109958\">Tracked in ticket #109958</a></p>\r\n</ins>\r\n","bodyHTML":"<p dir=\"auto\">How do I use Amazon OpenSearch with ElasticSearch module? <a href=\"https://github.com/gruntwork-io/terraform-aws-service-catalog/tree/master/modules/data-stores/elasticsearch\">https://github.com/gruntwork-io/terraform-aws-service-catalog/tree/master/modules/data-stores/elasticsearch</a></p>\n<hr>\n<ins datetime=\"2023-03-07T15:21:43Z\">\n <p dir=\"auto\"><a href=\"https://support.gruntwork.io/hc/requests/109958\" rel=\"nofollow\">Tracked in ticket #109958</a></p>\n</ins>","answer":{"body":"You need to set the following variables to use the Amazon OpenSerach with the elasticsearch module inside our `terraform-aws-service-catalog`: \r\n\r\n```\r\n advanced_options = {\r\n \"override_main_response_version\" = \"true\"\r\n }\r\n elasticsearch_version = \"OpenSearch_1.0\" # any other open search version you prefer\r\n```\r\n\r\nFor test things out, you can add these two variables to our example module (`[elasticsearch-public](https://github.com/gruntwork-io/terraform-aws-service-catalog/tree/master/examples/for-learning-and-testing/data-stores/elasticsearch-public)`) and run `terraform apply`. \r\n\r\nYou can find more information from here: https://github.com/hashicorp/terraform-provider-aws/issues/20853","bodyHTML":"<p dir=\"auto\">You need to set the following variables to use the Amazon OpenSerach with the elasticsearch module inside our <code class=\"notranslate\">terraform-aws-service-catalog</code>:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\" advanced_options = {\n &quot;override_main_response_version&quot; = &quot;true&quot;\n }\n elasticsearch_version = &quot;OpenSearch_1.0&quot; # any other open search version you prefer\"><pre class=\"notranslate\"><code class=\"notranslate\"> advanced_options = {\n \"override_main_response_version\" = \"true\"\n }\n elasticsearch_version = \"OpenSearch_1.0\" # any other open search version you prefer\n</code></pre></div>\n<p dir=\"auto\">For test things out, you can add these two variables to our example module (<code class=\"notranslate\">[elasticsearch-public](https://github.com/gruntwork-io/terraform-aws-service-catalog/tree/master/examples/for-learning-and-testing/data-stores/elasticsearch-public)</code>) and run <code class=\"notranslate\">terraform apply</code>.</p>\n<p dir=\"auto\">You can find more information from here: <a class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"992296454\" data-permission-text=\"Title is private\" data-url=\"https://github.com/hashicorp/terraform-provider-aws/issues/20853\" data-hovercard-type=\"issue\" data-hovercard-url=\"/hashicorp/terraform-provider-aws/issues/20853/hovercard\" href=\"https://github.com/hashicorp/terraform-provider-aws/issues/20853\">hashicorp/terraform-provider-aws#20853</a></p>"}}} />
18+
19+
</CenterLayout>
20+
21+
22+
<!-- ##DOCS-SOURCER-START
23+
{
24+
"sourcePlugin": "github-discussions",
25+
"hash": "2a1a68e24e704d752ce8ce6419ea46ef"
26+
}
27+
##DOCS-SOURCER-END -->

0 commit comments

Comments
 (0)