New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare workers #1538

Open
newtack opened this Issue Jun 19, 2018 · 4 comments

Comments

Projects
None yet
6 participants
@newtack
Copy link

newtack commented Jun 19, 2018

Rather than AWS APIG I'd want to use Cloudflare workers for my API entry point, cost being one of the considerations (7x less expensive).

I am sure this is not a common case yet, so I don't expect you to implement this now, but can you point me to how I could do it myself?

@lukehoban

This comment has been minimized.

Copy link
Member

lukehoban commented Jun 19, 2018

There's probably a few pieces that would be needed.

First - a Pulumi resource provider for managing Cloudflare resources. That's something we're definitely interested in bringing up. It could be done either on top of https://github.com/terraform-providers/terraform-provider-cloudflare using https://github.com/pulumi/pulumi-terraform, or as a native Pulumi resource provider (similar to https://github.com/pulumi/pulumi-kubernetes). This is something we'd love to help with if anyone is interested in partnering on building it up.

That would give you the ability to manage raw resources (including Workers) in Cloudflare. Next, you would want to create a library to allow you to use a higher-level programming model for connecting Cloudflare workers to API endpoints. For that, you could take inspiration from https://github.com/pulumi/pulumi-aws-serverless and create a cloudflare-serverless package.

These are on our longer term roadmap, but we're also open to helping out if others are interested in making progress on either/both in the near term.

@ellismg

This comment has been minimized.

Copy link
Member

ellismg commented Jun 19, 2018

Do note that according to terraform-providers/terraform-provider-cloudflare#50, it looks like the terraform provider does not yet support Cloudflare Workers. So if you do want to take the tfgen approach (which may be helpful if there’s lots of other Cloudflare things you want) you may first need to add that feature to the provider.

According to the issue it is on their roadmap so you might be able to contribute to the provide and help move the whole ecosystem forward!

@patryk

This comment has been minimized.

Copy link

patryk commented Nov 20, 2018

Hello everyone, just FYI, Terraform provider supports Cloudflare Workers now.

@casey-robertson

This comment has been minimized.

Copy link

casey-robertson commented Feb 14, 2019

Upvote for Cloudflare from tfgen

@lukehoban is this officially in a milestone? You mentioned in Slack that it was at the top of your list and "near term". Building out our own backlog for the next month and seeing if we can get an idea of where this might land. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment