Skip to content

Commit

Permalink
docs: add smtp config note and generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stebenz committed Aug 21, 2024
1 parent 6a1012c commit 6021f7b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/resources/smtp_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ Resource representing the SMTP configuration of an instance.

Breaking changes in update to ZITADEL provider v2.0.0, please remove and reimport the SMTP configuration into the Terraform state, as the logic for the ID in this resource changed.

```bash
# Find out the state path of your SMTP resource
export SMTP_CONFIG=$(terraform state list | grep 'smtp_config')

# Remove the current state of your SMTP resource
terraform state rm ${SMTP_CONFIG}

# Reimport your SMTP resource
terraform import ${SMTP_CONFIG} "${SMTP_CONFIG_ID}:${SMTP_CONFIG_PASSWORD}"
```

---

## Example Usage
Expand Down
11 changes: 11 additions & 0 deletions templates/resources/smtp_config.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ description: |-

Breaking changes in update to ZITADEL provider v2.0.0, please remove and reimport the SMTP configuration into the Terraform state, as the logic for the ID in this resource changed.

```bash
# Find out the state path of your SMTP resource
export SMTP_CONFIG=$(terraform state list | grep 'smtp_config')

# Remove the current state of your SMTP resource
terraform state rm ${SMTP_CONFIG}

# Reimport your SMTP resource
terraform import ${SMTP_CONFIG} "${SMTP_CONFIG_ID}:${SMTP_CONFIG_PASSWORD}"
```

---

## Example Usage
Expand Down

0 comments on commit 6021f7b

Please sign in to comment.