diff --git a/docs/data-sources/server_backup_schedule.md b/docs/data-sources/server_backup_schedule.md index f607fbd3..1dac3c25 100644 --- a/docs/data-sources/server_backup_schedule.md +++ b/docs/data-sources/server_backup_schedule.md @@ -4,14 +4,14 @@ page_title: "stackit_server_backup_schedule Data Source - stackit" subcategory: "" description: |- Server backup schedule datasource schema. Must have a region specified in the provider configuration. - !> This resource is in beta and may be subject to breaking changes in the future. Use with caution. + ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources. --- # stackit_server_backup_schedule (Data Source) Server backup schedule datasource schema. Must have a `region` specified in the provider configuration. -!> This resource is in beta and may be subject to breaking changes in the future. Use with caution. +~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources. ## Example Usage diff --git a/docs/data-sources/server_backup_schedules.md b/docs/data-sources/server_backup_schedules.md index edbb813a..0858c71b 100644 --- a/docs/data-sources/server_backup_schedules.md +++ b/docs/data-sources/server_backup_schedules.md @@ -4,14 +4,14 @@ page_title: "stackit_server_backup_schedules Data Source - stackit" subcategory: "" description: |- Server backup schedules datasource schema. Must have a region specified in the provider configuration. - !> This resource is in beta and may be subject to breaking changes in the future. Use with caution. + ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources. --- # stackit_server_backup_schedules (Data Source) Server backup schedules datasource schema. Must have a `region` specified in the provider configuration. -!> This resource is in beta and may be subject to breaking changes in the future. Use with caution. +~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources. ## Example Usage diff --git a/docs/guides/opting_into_beta_resources.md b/docs/guides/opting_into_beta_resources.md index 771a1c5e..6378e1c8 100644 --- a/docs/guides/opting_into_beta_resources.md +++ b/docs/guides/opting_into_beta_resources.md @@ -36,9 +36,9 @@ export STACKIT_TF_ENABLE_BETA_RESOURCES=true ## Listing Beta Resources -- `stackit_server_backup_schedule` +- [`stackit_server_backup_schedule`](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/resources/server_backup_schedule) ## Listing Beta Data Sources -- `stackit_server_backup_schedule` -- `stackit_server_backup_schedules` \ No newline at end of file +- [`stackit_server_backup_schedule`](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/server_backup_schedule) +- [`stackit_server_backup_schedules`](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/server_backup_schedules) \ No newline at end of file diff --git a/docs/resources/server_backup_schedule.md b/docs/resources/server_backup_schedule.md index 6415f2f3..8ac507ff 100644 --- a/docs/resources/server_backup_schedule.md +++ b/docs/resources/server_backup_schedule.md @@ -4,14 +4,14 @@ page_title: "stackit_server_backup_schedule Resource - stackit" subcategory: "" description: |- Server backup schedule resource schema. Must have a region specified in the provider configuration. - !> This resource is in beta and may be subject to breaking changes in the future. Use with caution. + ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources. --- # stackit_server_backup_schedule (Resource) Server backup schedule resource schema. Must have a `region` specified in the provider configuration. -!> This resource is in beta and may be subject to breaking changes in the future. Use with caution. +~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources. ## Example Usage diff --git a/stackit/internal/features/beta.go b/stackit/internal/features/beta.go index fd806b16..afc599ed 100644 --- a/stackit/internal/features/beta.go +++ b/stackit/internal/features/beta.go @@ -49,5 +49,9 @@ func CheckBetaResourcesEnabled(ctx context.Context, data *core.ProviderData, dia func AddBetaDescription(description string) string { // Callout block: https://developer.hashicorp.com/terraform/registry/providers/docs#callouts - return fmt.Sprintf("%s\n\n!> This resource is in beta and may be subject to breaking changes in the future. Use with caution.", description) + return fmt.Sprintf("%s\n\n~> %s %s", + description, + "This resource is in beta and may be subject to breaking changes in the future. Use with caution.", + "See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.", + ) } diff --git a/templates/guides/opting_into_beta_resources.md.tmpl b/templates/guides/opting_into_beta_resources.md.tmpl index 771a1c5e..6378e1c8 100644 --- a/templates/guides/opting_into_beta_resources.md.tmpl +++ b/templates/guides/opting_into_beta_resources.md.tmpl @@ -36,9 +36,9 @@ export STACKIT_TF_ENABLE_BETA_RESOURCES=true ## Listing Beta Resources -- `stackit_server_backup_schedule` +- [`stackit_server_backup_schedule`](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/resources/server_backup_schedule) ## Listing Beta Data Sources -- `stackit_server_backup_schedule` -- `stackit_server_backup_schedules` \ No newline at end of file +- [`stackit_server_backup_schedule`](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/server_backup_schedule) +- [`stackit_server_backup_schedules`](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/server_backup_schedules) \ No newline at end of file