https://pulumi.com logo
Title
a

adorable-gpu-98268

05/09/2022, 11:37 AM
Can I set the AWS ECS account settings using pulumi? Specifically I want to enable Dual-stack VPC IPv6:
dualStackIPv6
I can set this using the aws cli, but I’ve a multi-account setup configured with pulumi and would need to set that for every account.
It seems pulumi only supports
containerInsights
of the settings listed at that page.
const cluster = new aws.ecs.Cluster("cluster", {
    settings: [{
        name: "dualStackIPv6",
        value: "enabled"
    }]
})
fails with:
aws:ecs:Cluster (cluster):
    error: aws:ecs/cluster:Cluster resource 'cluster' has a problem: expected setting.0.name to be one of [containerInsights], got dualStackIPv6. Examine values at 'Cluster.Settings'.
I’d like to invoke this command using pulumi: https://docs.aws.amazon.com/cli/latest/reference/ecs/put-account-setting-default.html
aws ecs put-account-setting-default --name dualStackIPv6 --value enabled --region my-region
So I did find: https://www.pulumi.com/registry/packages/aws/api-docs/ecs/accountsettingdefault/ but it also doesn’t support
dualStackIPv6