I have 2 questions in mind that I can’t find any c...
# general
b
I have 2 questions in mind that I can’t find any clear answers in the docs: 1. I’m a little confused over which package I should use when creating the resources. Should I be using the one in
@pulumi/aws
or the ones in
@pulumi/awsx
? Quite a number of resources are in both packages. For eg, I could create a security group through
aws.ec2.SecurityGroup
but also through
awsx.classic.ec2.SecurityGroup.
Both have some slight differences in their API interface. 2. When using the components in
@pulumi/awsx
, there are the same resources in the
awsx.classic.*
and
awsx.*
module. For eg, there is an
awsx.classic.lb.ApplicationLoadBalancer
and also a
awsx.lb.ApplicationLoadBalancer
. Yet, both have slight differences in their API interface too. From which module in the
awsx
package should I use when creating my resources?
q
As I understand it, the awsx.classic is the old typescript-only version of awsx, which is there for compatibility reasons. The awsx package in general provides some higher-level components that make some things easier than using the plain aws provider but you can mix aws and awsx if you want.
b
Ahh… In this case, I presume I should not be using any of the stuff in
awsx.classic.*
in a new project and should only mix between the
aws
and
awsx
top-level components, right?
q
Yes, that should be the approach I believe
b
Thank you, @quaint-hydrogen-7228!🙏