Resource: awsEcsAccountSettingDefault
Provides an ECS default account setting for a specific ECS Resource name within a specific region. More information can be found on the ECS Developer Guide.
\~> NOTE: The AWS API does not delete this resource. When you run destroy
, the provider will attempt to disable the setting.
\~> NOTE: Your AWS account may not support disabling containerInstanceLongArnFormat
, serviceLongArnFormat
, and taskLongArnFormat
. If your account does not support disabling these, "destroying" this resource will not disable the setting nor cause a Terraform error. However, the AWS Provider will log an AWS error: invalidParameterException:YouCanNoLongerDisableLongArnSettings
.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.ecsAccountSettingDefault.EcsAccountSettingDefault(this, "test", {
name: "taskLongArnFormat",
value: "enabled",
});
Argument Reference
The following arguments are supported:
name
- (Required) Name of the account setting to set. Valid values areserviceLongArnFormat
,taskLongArnFormat
,containerInstanceLongArnFormat
,awsvpcTrunking
andcontainerInsights
.value
- (Required) State of the setting. Valid values areenabled
anddisabled
.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- ARN that identifies the account setting.prinicpalArn
- ARN that identifies the account setting.
Import
ECS Account Setting defaults can be imported using the name
, e.g.,