https://pulumi.com logo
#general
Title
# general
b

bumpy-yak-84133

04/08/2023, 4:14 AM
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

quaint-hydrogen-7228

04/08/2023, 10:01 AM
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

bumpy-yak-84133

04/08/2023, 10:04 AM
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

quaint-hydrogen-7228

04/08/2023, 8:55 PM
Yes, that should be the approach I believe
b

bumpy-yak-84133

04/09/2023, 10:18 AM
Thank you, @quaint-hydrogen-7228!🙏