Skip to content

Commit 1823b21

Browse files
Merge pull request #58 from ianf-mongodb/DOCSP-29912
DOCSP-29912 Fix build warning, admonition has been deprecated
2 parents 8543ce3 + 4536996 commit 1823b21

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

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

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -182,41 +182,36 @@ content: |
182182
- IP address or CIDR block from which your |service| cluster is
183183
accessible.
184184
185-
.. admonition:: Use an Input Variables File to Maximize security
186-
:class: admonition-example
185+
.. example:: Use an Input Variables File to Maximize security
187186
188187
To maximize security, consider taking the following steps:
189188
190189
a. Define the ``local`` variables in an `input variables
191190
<https://learn.hashicorp.com/terraform/getting-started/variables.html>`__
192191
file.
193192
194-
.. example::
193+
.. code-block:: none
195194
196-
.. code-block:: none
195+
variable "mongodb_atlas_api_pub_key" {
196+
default = "my-public-key"
197+
}
197198
198-
variable "mongodb_atlas_api_pub_key" {
199-
default = "my-public-key"
200-
}
201-
202-
variable "mongodb_atlas_api_pri_key" {
203-
default = "my-private-key"
204-
}
199+
variable "mongodb_atlas_api_pri_key" {
200+
default = "my-private-key"
201+
}
205202
206203
#. Exclude the input variables file from your repository. For
207204
example, add the filename to the ``.gitignore`` file for your
208205
repository.
209206
#. Reference variables from the input variables file in the
210207
``main.tf`` file by prefacing them with ``vars.``.
211208
212-
.. example::
213-
214-
.. code-block:: none
209+
.. code-block:: none
215210
216-
provider "mongodbatlas" {
217-
public_key = vars.mongodb_atlas_api_pub_key
218-
private_key = vars.mongodb_atlas_api_pri_key
219-
}
211+
provider "mongodbatlas" {
212+
public_key = vars.mongodb_atlas_api_pub_key
213+
private_key = vars.mongodb_atlas_api_pri_key
214+
}
220215
---
221216
title: "Add optional configuration options to the ``main.tf`` file."
222217
level: 4

0 commit comments

Comments
 (0)