Skip to content

Commit

Permalink
Combined the snippets for the main.tf instructions into a single sn…
Browse files Browse the repository at this point in the history
…ippet.

Signed-off-by: jasonviviano <[email protected]>
  • Loading branch information
jasonviviano committed Feb 7, 2024
1 parent 6ef3523 commit 525af36
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/content/guides/recipes/howto-author-recipes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ Add the `context` parameter to your `variable.tf` file:

{{< rad file="snippets/redis-kubernetes-variables.tf" embed=true marker="//CONTEXT" lang="terraform" >}}

Ensure that your `main.tf` has a defined `required_providers` in order to guarantee that your credentials and the correct resource provider is detected by Radius:
Ensure that your `main.tf` contains:

{{< rad file="snippets/redis-kubernetes-main.tf" embed=true marker="//PROVIDER" lang="terraform" >}}
- Defined `required_providers` in order to guarantee that your credentials and the correct resource provider is detected by Radius
- Utilizes the `context` parameter for naming and namespace configuration :

Update `main.tf` to use `context` for naming and namespace configuration:

{{< rad file="snippets/redis-kubernetes-main.tf" embed=true marker="//RESOURCE" lang="terraform" >}}
{{< rad file="snippets/redis-kubernetes-main.tf" embed=true lang="terraform" >}}

{{% /codetab %}}

Expand Down

0 comments on commit 525af36

Please sign in to comment.