Terraform download tar file






















Viewed times. Improve this question. Why do you want to use Terraform for this? Just wanted to see if it works, should i use ansible for this? Is this part of something much larger or is it a one off activity? Add a comment. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.

Podcast An oral history of Stack Overflow — told by its founding team. Millinery on the Stack: Join us for Winter Summer? Bash, ! Featured on Meta. This allows you to work with configurations from unsupported version control systems, automatically generate Terraform configurations from some other source of data, or build a variety of other integrations. Important: The script below is provided to illustrate the run process, and is not intended for production use.

If you want to drive Terraform Cloud runs from the command line, please see the CLI-driven run workflow. Pushing a new configuration to an existing workspace is a multi-step process.

This section walks through each step in detail, using an example bash script to illustrate. You need apply runs permission to create new configuration versions for the workspace. Refer to the permissions documentation for more details. The configuration version API requires a tar. Important: The configuration directory must be the root of the tar file, with no intermediate directories.

In other words, when the tar file is extracted the result must be paths like. The first step identified the organization name and the workspace name; however, the configuration version API expects the workspace ID.

As such, the ID has to be looked up. If the workspace ID is already known, this step can be skipped. Before uploading the configuration files, you must create a configuration-version to associate uploaded content with the workspace.

This API call performs two tasks: it creates the new configuration version and it extracts the upload URL to be used in the next step. Next, upload the configuration version tar. If a file is not uploaded, the configuration version will not be usable, since it will have no Terraform configuration files. Terraform Cloud automatically creates a new run with a plan once the new file is uploaded.



0コメント

  • 1000 / 1000