Skip to content

Commit

Permalink
template: document ignore_changes (#368)
Browse files Browse the repository at this point in the history
We reference a GitHub issue in the template data source docs, that
explains how to employ the `ignore_changes` directive in terraform.
  • Loading branch information
sauterp authored Jun 14, 2024
1 parent fb971b0 commit 7fab3a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ BUG FIXES:
IMPROVEMENTS:

- `exoscale_instance_pool`: add `anti-affinity-group` & deprecate `affinity-group` #355
- template: document ignore_changes #368

## 0.59.1 (June 3, 2024)

Expand Down
3 changes: 3 additions & 0 deletions docs/data-sources/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ page_title: "exoscale_template Data Source - terraform-provider-exoscale"
subcategory: ""
description: |-
Fetch Exoscale Compute Instance Templates https://community.exoscale.com/documentation/compute/custom-templates/ data.
Exoscale instance templates are regularly updated to include the latest updates. Whenever this happens, the template ID also changes which can lead terraform to plan the recreation of an instance. To work around this you may find this issue https://github.com/exoscale/terraform-provider-exoscale/issues/366 helpful.
---

# exoscale_template (Data Source)

Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data.

Exoscale instance templates are regularly updated to include the latest updates. Whenever this happens, the template ID also changes which can lead terraform to plan the recreation of an instance. To work around this you may find [this issue](https://github.com/exoscale/terraform-provider-exoscale/issues/366) helpful.

## Example Usage

```terraform
Expand Down
4 changes: 3 additions & 1 deletion exoscale/datasource_exoscale_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const (

func dataSourceTemplate() *schema.Resource {
return &schema.Resource{
Description: "Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data.",
Description: `Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data.
Exoscale instance templates are regularly updated to include the latest updates. Whenever this happens, the template ID also changes which can lead terraform to plan the recreation of an instance. To work around this you may find [this issue](https://github.com/exoscale/terraform-provider-exoscale/issues/366) helpful.`,
Schema: map[string]*schema.Schema{
dsTemplateAttrZone: {
Description: "The Exoscale [Zone](https://www.exoscale.com/datacenters/) name.",
Expand Down

0 comments on commit 7fab3a2

Please sign in to comment.