> For the complete documentation index, see [llms.txt](https://docs.silessian.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.silessian.com/planapply-for-jira-cloud/admin-features/terraform-console/terraform-tab/generate-config.md).

# Generate config

{% hint style="success" %}
If you don't want to append provider block with credentials inside Terraform script files, you can check  "Use public provider".\
App will append volatile file with provider block and public provider credentials. This file will not be stored or returned as the result of any operation.&#x20;
{% endhint %}

{% hint style="info" %}
If you are not using "Public provider" credentials, it is required to add two Terraform code blocks:

* terraform
  * specify atlcloudjira provider
* provider
  * inside provider, specify credentials used to authenticate Terraform provider in given instance
    {% endhint %}

To generate configuration code based on existing resources, please do following.

1. Go to Toolbox tab
2. Select all required resources
3. Add them as import to selected terraform file.
4. Click on "Generate config" to await process to be completed.
5. Reload workspace to verify that new file was created.

<figure><img src="/files/SYZkhTPkSJeK59EqwWVw" alt=""><figcaption><p>Click on helper button to generate configuration for imports.</p></figcaption></figure>

<figure><img src="/files/sgkntrTheMmXHJCwhNXu" alt=""><figcaption><p>Type a name for generated configuration.</p></figcaption></figure>

<figure><img src="/files/YR7vwshcWOVXG3wrLvik" alt=""><figcaption><p>Code generation result is visible in Execution logs tab.</p></figcaption></figure>

<figure><img src="/files/neOa0Na1A7dUHeUJS4Gu" alt=""><figcaption><p>Reload workspace and check newly generated Terraform file.</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.silessian.com/planapply-for-jira-cloud/admin-features/terraform-console/terraform-tab/generate-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
