Skip to content

Commit d886321

Browse files
authored
Update Composer configuration description to inform configuration is not supported in Composer 3 (#12996)
Co-authored-by: Yuan Chuan Kee <[email protected]>
1 parent 2346615 commit d886321

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

mmv1/third_party/terraform/services/composer/resource_composer_environment.go.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -725,14 +725,14 @@ func ResourceComposerEnvironment() *schema.Resource {
725725
Type: schema.TypeString,
726726
Optional: true,
727727
ValidateFunc: validation.StringInSlice([]string{"CLOUD_LOGGING_ONLY", "CLOUD_LOGGING_AND_CLOUD_STORAGE"}, false),
728-
Description: `Whether logs in cloud logging only is enabled or not. This field is supported for Cloud Composer environments in versions composer-2.0.32-airflow-2.1.4 and newer.`,
728+
Description: `Whether logs in cloud logging only is enabled or not. This field is supported for Cloud Composer environments in versions composer-2.0.32-airflow-2.1.4 and newer but not in composer-3*`,
729729
},
730730
},
731731
},
732732
},
733733
"airflow_metadata_retention_config": {
734734
Type: schema.TypeList,
735-
Description: `Optional. The configuration setting for database retention.`,
735+
Description: `Optional. The policy for airflow metadata database retention.`,
736736
Optional: true,
737737
Computed: true,
738738
Elem: &schema.Resource{

mmv1/third_party/terraform/website/docs/r/composer_environment.html.markdown

+11-8
Original file line numberDiff line numberDiff line change
@@ -1367,17 +1367,20 @@ The following arguments are supported:
13671367
[documented below](#nested_data_retention_config_c3).
13681368

13691369
<a name="nested_data_retention_config_c3"></a>The `data_retention_config` block supports:
1370-
* `task_logs_retention_config` -
1370+
* `airflow_metadata_retention_config` -
13711371
(Optional)
1372-
The configuration setting for Airflow task logs. Structure is
1373-
[documented below](#nested_task_logs_retention_config_c3).
1372+
The retention policy for airflow metadata database. Structure is
1373+
[documented below](#nested_airflow_metadata_retention_config_c3).
13741374

1375-
<a name="nested_task_logs_retention_config_c3"></a>The `task_logs_retention_config` block supports:
1376-
* `storage_mode` -
1375+
<a name="nested_airflow_metadata_retention_config_c3"></a>The `airflow_metadata_retention_config` block supports:
1376+
* `retention_mode` -
13771377
(Optional)
1378-
The mode of storage for Airflow task logs. Values for storage mode are
1379-
`CLOUD_LOGGING_ONLY` to only store logs in cloud logging and
1380-
`CLOUD_LOGGING_AND_CLOUD_STORAGE` to store logs in cloud logging and cloud storage.
1378+
Retention can be either enabled or disabled. Values for retention_mode are
1379+
`RETENTION_MODE_ENABLED` to enable retention and `RETENTION_MODE_DISABLED`
1380+
to disable retention.
1381+
* `retention_days` -
1382+
(Optional)
1383+
How many days data should be retained for.
13811384

13821385

13831386
<a name="nested_storage_config_c3"></a>The `storage_config` block supports:

0 commit comments

Comments
 (0)