https://pulumi.com logo
#typescript
Title
# typescript
d

damp-painting-47843

11/14/2022, 10:21 PM
What is the difference between the aws provider and awsx?
l

little-cartoon-10569

11/14/2022, 10:47 PM
awsx is a collection of mixins and component resources that provide some convention-over-configuration conveniences.
It uses aws underneath. You can migrate resources between the two libraries, but it can be tricky because of re-parenting / aliasing.
awsx is great for getting started, proofs-of-concepts, and any code that you don't intend to manage in production for an extended period.
d

damp-painting-47843

11/14/2022, 10:49 PM
Oh. So the preference is aws?
l

little-cartoon-10569

11/14/2022, 10:49 PM
If you need fine-grained control over your resources, then you should prefer aws, if you have to time to create all the resources yourself.
This is my opinion, at least.
d

damp-painting-47843

11/14/2022, 10:51 PM
Ah. Ok. Good to know. Trying to resolve my first issue (12:54pm) was thinking that maybe I wasn’t using the latest provider.
Actually, scratch that, I’m now trying to use aws-native where I can instead of aws.
l

little-cartoon-10569

11/14/2022, 10:51 PM
They're compatible. You can mix and match.
If you create a VPC in one, you can pass that VPC ID into a constructor of the other.
d

damp-painting-47843

11/14/2022, 10:59 PM
I’m just trying to replace a TargetGroup without success.
Doesn’t like to be renamed.
Ugh. Same issue with aws-native as aws original flavor.
l

little-cartoon-10569

11/14/2022, 11:12 PM
Yes, that's an AWS thing. It's highlighted in the Pulumi docs with the little icon next to the name property.
message has been deleted
That icon means that replacement will happen if the property changes. Can't be worked around.
s

stocky-restaurant-98004

11/14/2022, 11:17 PM
Just to augment what @little-cartoon-10569 said, all AWSX 1.0 (currently in beta) features are full multi-language components, no single-language overlays, so going forward you'll get the same experience in all supported Pulumi languages.
d

damp-painting-47843

11/14/2022, 11:33 PM
That’s fine. I don’t mind it being replaced, it just fails at replacing it.
Apparently it’s a bug from 2020 https://github.com/pulumi/pulumi/issues/5900
l

little-cartoon-10569

11/15/2022, 12:01 AM
d

damp-painting-47843

11/15/2022, 3:38 PM
I’m not sure that would have worked for me but maybe I’ll try to reproduce. At the moment I fixed my issue manually so I could move on to other things.