https://pulumi.com logo
Title
w

witty-park-12681

02/02/2023, 11:31 PM
I have a question about upgrading
awsx
It turns out that the syntax
const cluster = new aws.ecs.Cluster("cluster", {});
is no longer supported with
import * as awsx from '@pulumi/awsx
Are there any guides for migrating from
import * as awsx from '@pulumi/awsx/classic
to the latest Typescipt api? I don't see any documentation on this. Any direction is appreciated. I'm using the following versions:
"@pulumi/aws": "5.29.0",
        "@pulumi/awsx": "1.0.1",
        "@pulumi/pulumi": "3.53.1",
m

magnificent-scientist-64889

02/03/2023, 9:48 AM
It's moved to
awsx.classic.ecs.Cluster
And only a subset of the classic resources have been created in the new structure. As it's not deprecated, you should be able to just continue using it by updating the import.