has anyone used Pulumi and awsx?

Hey everyone,

I’m a newcomer to AWS with previous experience primarily in Azure. I’m looking into the best ways to manage infrastructure here and keep coming across the awsx (Crosswalk) library.

For those of you using it - what has your experience been like so far?

Thanks in advance


Related discussions:

I’ve been working with AWS for almost a decade now and I’ve never heard of awsx. Pulumi isn’t as popular as other options like Terraform or the AWS CDK. CDK has its own limitations since it’s based off cloudformation, so terraform had become sort of the industry standard. Unless Pulumi has improved dramatically in the past year or two I wouldn’t bother with it

It’s pretty good, what are you planning on provisioning?

You can always mix and match it with the aws package, that is what I have done.

Hub-and-Spoke topology with firewall appliance and connectivity to on-prem. Can you explain differences between aws and awsx?

Pulumi is great, best of the bunch imo, I’m using it right now! :joy:

I don’t think awsx is used all that much in my experience. It’s pretty simple to create your own infra without it using the base package

Awsx is a good starting point but in my experience sometimes it will create bunch of stuff you dont need. If you are just messing around and trying things out is good.

awsx basically wraps aws with pre-configured (best practices) resources. It’s not necessary, but can be a good guide or starting point. See also recent replies below.

Pulumi engineer here, happy to explain the high-level differences and dig into any questions you have.

Briefly, AWSx is a collection of extensions (hence the “x”) of the core `aws` provider that aims to make common tasks easier by exposing higher-level abstractions. You can use it to provision things like VPCs, API Gateways, Lambdas, event handlers of various kinds (S3 uploads, Cloudwatch tasks) with much less code and with best practices built-in. As a web developer, I use it often, typically for aws.lambda.CallbackFunction and aws.apigateway.RestAPI resources, which I use to define Lambdas and API Gateway instances for simple serverless handlers, often for front-end applications. Our serverless template has an example:

https://github.com/pulumi/templates/blob/010dbcf802da70d1eda903e1eaa0f65262f7011d/serverless-aws-typescript/index.ts#L5-L21

The container-service template (code) also uses AWSx to define a load balancer, ECS cluster, ECR repo and image, and Fargate service.

All of these are doable without AWSx (i.e., with the lower-level `aws` provider directly), and you can use `aws` and `awsx` side-by-side as well, as others have mentioned (also super common). They’re just there to save you some time and give you a bit better DX. Note that not all AWSx resources belong to the `awsx` package, though; some do, some belong to `aws`, and still others, like API Gateway, have packages of their own. (So AWSx is more of a conceptual grouping than a concrete, library-specific one.)

Lots more here, but you’ve probably seen this already: https://www.pulumi.com/docs/iac/clouds/aws/guides Hope that helps!

Thanks for such great explanation :slight_smile: Seems that I can start with aws and take a look on awsx later.

Yep, that’s right!

I have experience with both Pulumi and AWS CDK. We switched from Pulumi to CDK for external. I should say that experience with Pulumi is much more pleasant. I would rather work with Pulumi.
I found a nice way to organize code/components with pulume. I like it a lot.

I’m not that surprised. The AWS CDK is just a cloudformation wrapper and cloudformation is terrible

What are your main gripes with pulumi?