https://pulumi.com logo
#aws
Title
p

polite-napkin-90098

07/20/2023, 4:04 PM
I still can't work out how to import an ECS service into the aws-native provider, see https://pulumi-community.slack.com/archives/CRH5ENVDX/p1689701859092919 So I guess I shall switch to the aws-classic provider. It's not helping my case that we shouldn't use Terraform or Cloudformation to constantly have to explain that not only is there an apparent bug with a pulumi provider but that I can't find any help to resolve the issue.
s

salmon-account-74572

07/20/2023, 4:15 PM
Hey Michael, sorry you’re running into an issue. I’ve contacted our AWS Native provider team internally to see if I can get some additional information for you. You’re probably already aware, but the AWS Native provider doesn’t (currently) have the same breadth of coverage as the AWS Classic provider, and so it’s possible you may need to use a combination of AWS Native and AWS Classic in your Pulumi programs (this is not uncommon and is fully supported).
p

polite-napkin-90098

07/20/2023, 4:43 PM
Thanks Scott, much appreciated I am, indeed, doing that, but the aws-native one seemed to work fine for ECS services. it's just this import that's stumping me.
s

salmon-account-74572

07/20/2023, 4:54 PM
Gotcha. As soon as I get some more information from the AWS Native provider team, I’ll update you here.
p

polite-napkin-90098

07/27/2023, 7:03 PM
any news on this, I ran into it again today
I found a confusing but potentially helpful part of the help text on the
pulumi import
cli.
Copy code
--properties strings                    The property names to use for the import in the format name1,name2
I say potentially helpful as the error above also talk about properties, but I've no idea how to use it as there are no examples in any of the docs I can find. Does anulumi import --provider urnpulumitest-ecs-recorder:infra ecs recorderpulumiprovidersaws native:test-ecs-recorder-nativeProvider -s test-ecs-recorder --properties ServiceArn,Cluster aws-nativeecsService recorder arnawsecsus east 2910256582887:service/Test/recorder,Testyone know what this flag is for and what strings I'm meant to pass it? I tried:
pulumi import --provider urn:pulumi:test-ecs-recorder::infra-ecs-recorder::pulumi:providers:aws-native::test-ecs-recorder-nativeProvider -s test-ecs-recorder --properties ServiceArn,Cluster aws-native:ecs:Service recorder arn:aws:ecs:us-east-1:#####:service/Test/recorder,Test
but that gives the same error as above. Are there good docs for the CLI somewhere I'm missing?
2 Views