# Apply

{% 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 perform apply operation, follow steps below:

1. Make sure plan operation is performed successfully.
2. Click on apply button. Confirm operation by clicking Apply on popup dialog.
3. Verify apply operation output present in Execution logs.
4. In case of errors, that appeared during apply operation, update the Terraform code accordingly and repeat apply operation.
5. After operation is sucessfull, you will see new files being created. They are used to store information about the current state.&#x20;

<figure><img src="https://2582686426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn7nTpq2xv8EGbzULdTCb%2Fuploads%2FWhx9u7thdQunF11wuixI%2FApply1.png?alt=media&#x26;token=019f388b-3702-483b-8d59-bb2db7c8a9aa" alt=""><figcaption><p>Before applying make sure all changes in the plan are exactly as you intend.</p></figcaption></figure>

<figure><img src="https://2582686426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn7nTpq2xv8EGbzULdTCb%2Fuploads%2FqxNGleOegc0FLR89nvw6%2FApply2.png?alt=media&#x26;token=aeee6f43-f3e0-490d-8ccc-1a0def1f02e0" alt=""><figcaption><p>Example errors not detected at the time of plan operation</p></figcaption></figure>

<figure><img src="https://2582686426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn7nTpq2xv8EGbzULdTCb%2Fuploads%2Fot0lO1jycYB9WVF6qIyh%2FApply3.png?alt=media&#x26;token=6decbb31-6e07-4a25-b609-f0b96a734445" alt=""><figcaption><p>Fix applied to code, based on error message.</p></figcaption></figure>

<figure><img src="https://2582686426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn7nTpq2xv8EGbzULdTCb%2Fuploads%2FdMlyGsZVzEGBqyHHJa6U%2FApply4.png?alt=media&#x26;token=72995764-9a0c-459f-ace6-fcaf1ad180d0" alt=""><figcaption><p>This time apply operation was successful.</p></figcaption></figure>

<figure><img src="https://2582686426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn7nTpq2xv8EGbzULdTCb%2Fuploads%2FpJkvQmeYPhOS7UR0GagZ%2FApply5.png?alt=media&#x26;token=32adfa31-d543-4a76-a334-8154f41d7f5b" alt=""><figcaption><p>Reload workspace. You will find Terraform state files created.</p></figcaption></figure>
