File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -190,32 +190,28 @@ content: |
190
190
<https://learn.hashicorp.com/terraform/getting-started/variables.html>`__
191
191
file.
192
192
193
- .. example::
193
+ .. code-block:: none
194
194
195
- .. code-block:: none
195
+ variable "mongodb_atlas_api_pub_key" {
196
+ default = "my-public-key"
197
+ }
196
198
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
+ }
204
202
205
203
#. Exclude the input variables file from your repository. For
206
204
example, add the filename to the ``.gitignore`` file for your
207
205
repository.
208
206
#. Reference variables from the input variables file in the
209
207
``main.tf`` file by prefacing them with ``vars.``.
210
208
211
- .. example::
212
-
213
- .. code-block:: none
209
+ .. code-block:: none
214
210
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
+ }
219
215
---
220
216
title : " Add optional configuration options to the ``main.tf`` file."
221
217
level : 4
You can’t perform that action at this time.
0 commit comments