Skip to content

Commit 2794622

Browse files
Cleanup auditlogs on destroy (#85)
* Cleanup auditlogs on destroy * docs changes
1 parent 47814bd commit 2794622

19 files changed

Lines changed: 111 additions & 41 deletions

docs/resources/config.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ output "config_id" {
5353

5454
Import is supported using the following syntax:
5555

56-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
57-
5856
```shell
5957
# Configs can be imported using the ConfigId. Get the ConfigId using the [List Configs API](https://api.configcat.com/docs/#tag/Configs/operation/get-configs) for example.
6058

docs/resources/environment.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ output "environment_id" {
4242

4343
### Optional
4444

45+
- `cleanup_auditlogs_on_destroy` (Boolean) An optional flag which indicates whether the audit log records related to the environment should be deleted upon destroying the resource. It can be useful to turn on for temporary, ephemeral environments, when you don't want to keep the audit log entries for the environment after it is destroyed.
4546
- `color` (String) The color of the Environment.
4647
- `description` (String) The description of the Environment.
4748

@@ -53,8 +54,6 @@ output "environment_id" {
5354

5455
Import is supported using the following syntax:
5556

56-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
57-
5857
```shell
5958
# Environments can be imported using the EnvironmentId. Get the EnvironmentId using the [List Environments API](https://api.configcat.com/docs/#tag/Environments/operation/get-environments) for example.
6059

docs/resources/integration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ output "slack_integration_id" {
123123

124124
Import is supported using the following syntax:
125125

126-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
127-
128126
```shell
129127
# Integrations can be imported using the IntegrationId. Get the IntegrationId using the [List Integrations API](https://api.configcat.com/docs/index.html#tag/Integrations/operation/get-integrations) for example.
130128

docs/resources/permission_group.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ output "custom_permission_group_id" {
119119

120120
Import is supported using the following syntax:
121121

122-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
123-
124122
```shell
125123
# Permission Groups can be imported using the PermissionGroupId. Get the PermissionGroupId using the [List Permission Groups API](https://api.configcat.com/docs/#tag/Permission-Groups/operation/get-permission-groups) for example.
126124

docs/resources/product.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ output "product_id" {
5151

5252
Import is supported using the following syntax:
5353

54-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
55-
5654
```shell
5755
# Products can be imported using the ProductId. Get the ProductId using the [List Products API](https://api.configcat.com/docs/#tag/Products/operation/get-products) for example.
5856

docs/resources/product_preferences.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ resource "configcat_product_preferences" "preferences" {
7272

7373
Import is supported using the following syntax:
7474

75-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
76-
7775
```shell
7876
# Product preferences can be imported using the ProductId. Get the ProductId using the [List Products API](https://api.configcat.com/docs/#tag/Products/operation/get-products) for example.
7977

docs/resources/segment.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ output "segment_id" {
5555

5656
Import is supported using the following syntax:
5757

58-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
59-
6058
```shell
6159
# Segments can be imported using the SegmentId. Get the SegmentId using the [List Segments API](https://api.configcat.com/docs/#tag/Segments/operation/get-segments) for example.
6260

docs/resources/setting.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ Optional:
8282

8383
Import is supported using the following syntax:
8484

85-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
86-
8785
```shell
8886
# Feature Flags/Settings can be imported using the SettingId. Get the SettingId using e.g. the [List Flags API](https://api.configcat.com/docs/#tag/Feature-Flags-and-Settings/operation/get-settings).
8987

docs/resources/setting_tag.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ resource "configcat_setting_tag" "my_setting_tag" {
4343

4444
Import is supported using the following syntax:
4545

46-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
47-
4846
```shell
4947
# Setting Tags can be imported using a combined SettingId:TagId ID.
5048
# Get the SettingId using e.g. the [List Flags API](https://api.configcat.com/docs/#tag/Feature-Flags-and-Settings/operation/get-settings).

docs/resources/setting_value.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ Optional:
106106

107107
Import is supported using the following syntax:
108108

109-
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
110-
111109
```shell
112110
# Feature Flag/Setting values (V1) can be imported using a combined EnvironmentID:SettingId ID.
113111
# Get the EnvironmentId using e.g. the [List Environments API](https://api.configcat.com/docs/#tag/Environments/operation/get-environments).

0 commit comments

Comments
 (0)