Account Setting Default
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 disablingcontainerInstanceLongArnFormat,serviceLongArnFormat, andtaskLongArnFormat. If your account does not support disabling these, "destroying" this resource will not disable the setting nor cause a provider error. However, the AWS Provider will log an AWS error:InvalidParameterException: You can no longer disable Long Arn settings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.ecs.AccountSettingDefault("test", {
name: "taskLongArnFormat",
value: "enabled",
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.ecs.AccountSettingDefault("test",
name="taskLongArnFormat",
value="enabled")Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Ecs.AccountSettingDefault("test", new()
{
Name = "taskLongArnFormat",
Value = "enabled",
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewAccountSettingDefault(ctx, "test", &ecs.AccountSettingDefaultArgs{
Name: pulumi.String("taskLongArnFormat"),
Value: pulumi.String("enabled"),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecs.AccountSettingDefault;
import com.pulumi.aws.ecs.AccountSettingDefaultArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new AccountSettingDefault("test", AccountSettingDefaultArgs.builder()
.name("taskLongArnFormat")
.value("enabled")
.build());
}
}Content copied to clipboard
resources:
test:
type: aws:ecs:AccountSettingDefault
properties:
name: taskLongArnFormat
value: enabledContent copied to clipboard
Import
Using pulumi import, import ECS Account Setting defaults using the name. For example:
$ pulumi import aws:ecs/accountSettingDefault:AccountSettingDefault example taskLongArnFormatContent copied to clipboard