terraformpostgresql
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| terraformpostgresql [2024/11/28 22:33] – z0hpvk | terraformpostgresql [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Terraform with PostgreSQL ===== | ===== Terraform with PostgreSQL ===== | ||
| - | ==== Microsoft Azure ==== | + | ==== Microsoft Azure and PostgreSQL Flexible Server |
| === Useful Links === | === Useful Links === | ||
| Line 10: | Line 10: | ||
| [https:// | [https:// | ||
| + | The below commands will initialise Terraform, create an execution plan and apply it.\\ | ||
| + | Afterwards you can clean up the resources created via the terraform destroy command.\\ | ||
| + | < | ||
| + | terraform init -upgrade | ||
| + | terraform validate | ||
| + | terraform plan -out main.tfplan | ||
| + | terraform apply main.tfplan | ||
| + | |||
| + | terraform plan -destroy -out main.destroy.tfplan | ||
| + | terraform apply main.destroy.tfplan | ||
| + | </ | ||
| + | |||
| + | === Terraform Code === | ||
| == providers.tf == | == providers.tf == | ||
| <file yaml providers.tf> | <file yaml providers.tf> | ||
terraformpostgresql.1732833186.txt.gz · Last modified: (external edit)
