Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Terraform-Passing parameters

  • In order to pass parameters using 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 and use it in the command line step configuration.

Creating parameters

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

Click on the new parameter and give values and click on the Create button. Values will be stored in the vault if the “Secured in Vault button” is enabled.

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

  1. Create a pipeline with terraform step and add parameters required for passing it to the command line step.

Adding these parameters in the pipeline step:

Command Line Step configuration

  1. Users 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.

  • No labels