Skip to content

Commit 4536996

Browse files
committed
Removing nested examples
1 parent b7bac51 commit 4536996

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

source/includes/steps-atlas-terraform-file-from-template.yaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -190,32 +190,28 @@ content: |
190190
<https://learn.hashicorp.com/terraform/getting-started/variables.html>`__
191191
file.
192192
193-
.. example::
193+
.. code-block:: none
194194
195-
.. code-block:: none
195+
variable "mongodb_atlas_api_pub_key" {
196+
default = "my-public-key"
197+
}
196198
197-
variable "mongodb_atlas_api_pub_key" {
198-
default = "my-public-key"
199-
}
200-
201-
variable "mongodb_atlas_api_pri_key" {
202-
default = "my-private-key"
203-
}
199+
variable "mongodb_atlas_api_pri_key" {
200+
default = "my-private-key"
201+
}
204202
205203
#. Exclude the input variables file from your repository. For
206204
example, add the filename to the ``.gitignore`` file for your
207205
repository.
208206
#. Reference variables from the input variables file in the
209207
``main.tf`` file by prefacing them with ``vars.``.
210208
211-
.. example::
212-
213-
.. code-block:: none
209+
.. code-block:: none
214210
215-
provider "mongodbatlas" {
216-
public_key = vars.mongodb_atlas_api_pub_key
217-
private_key = vars.mongodb_atlas_api_pri_key
218-
}
211+
provider "mongodbatlas" {
212+
public_key = vars.mongodb_atlas_api_pub_key
213+
private_key = vars.mongodb_atlas_api_pri_key
214+
}
219215
---
220216
title: "Add optional configuration options to the ``main.tf`` file."
221217
level: 4

0 commit comments

Comments
 (0)