src.common package¶
Submodules¶
src.common.pass_through_list module¶
- src.common.pass_through_list.allow_list()¶
following subcommands don’t need remote state
- src.common.pass_through_list.deny_list()¶
commands that can break setup
src.common.run_command module¶
Build remote state path
Parse vars
Create command
- src.common.run_command.build_remote_backend_tf_file(storage_type, workspace_key_prefix, fips, state_key)¶
function to create remote_backend.tf file
- src.common.run_command.build_tf_state_path(required_vars, var_data, state_key, workspace)¶
function to build tf state path
- src.common.run_command.create_command(arguments_entered: List[str]) → str¶
- Parameters
arguments_entered – storage path, tfvars file
- Returns
command generated
- src.common.run_command.parse_inline_vars(args)¶
parse variables defined on the command line (-var foo=bar)
- src.common.run_command.parse_tfvar_files(args)¶
- parse variables defined in:
terraform.tfvars
file(s) defined in command line (-var-file foo.tfvars)
- src.common.run_command.parse_var_file(file)¶
- parse the variables defined in .tf file
- eg:
- variable name {
foo = “bar”
}
- src.common.run_command.parse_vars(var_data, args)¶
function to parse variables
- src.common.run_command.run_cmd(cmd)¶