Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Terraform - Passing parameters

  • In order to pass parameters using terraform Terraform a parameter should be created in the tool registry.

  • Parameter values can either be hardcoded or stored in the customer vault.

  • Value will be stored in the vault in the mentioned format OPSERA_CUSTOM_${_id}.

  • We can use this parameter for passing it via terraform Terraform and use it in the command line step configuration.

Creating parameters

  1. Login tohttps://portal.opsera.io -> Tool Registry -> Click Parameter tab->Click > Click on +New Parameter

Click on the new parameter and give Give values and click on the Create button. Values will be stored in the vault if the “Secured in Vault button” is enabled with toggle. This value cannot be changed upon creation.

...

Same procedure can be followed for creating parameters with hardcoded values just by disabling the “Secured in Vault” button.

...

Creating pipeline with

...

Terraform step and adding the parameters

2. Create a pipeline with

...

Terraform step and add parameters required for passing it to the command line step.Adding

...

Add these parameters in the pipeline step:

...

Command Line Step configuration

...

3. User will be able to get the parameters in the command line step by selecting the

...

Terraform step details from the dropdown.

...

After successful run of the pipeline the values are printed in the console log.

...