Creating Bulk redirect lists with API
Hey all,
I struggling to find a way to use terraform/pulumi to create a bulk redirect list with redirect rules.
My goal is to create a hundred of redirection rules that all follow a similar naming scheme
- from
<mydomain>/common<someID>
to <custom URL>
I thought bulk redirects should be the proper answer for that, but I can't quite find the right terraform resource for that4 Replies
You’ll also need to make sure you have a proxied record for each domain you want to redirect
thnx!
so a List (https://www.pulumi.com/registry/packages/cloudflare/api-docs/list/)
and I don't need to use a ListItem in that case? Just collect all ListItemArgs as a sequence and use them with a List resource?
pulumi
List
Documentation for the cloudflare.List resource with examples, input properties, output properties, lookup functions, and supporting types.
Correct. You can either define list items in the list resource or as separate list item resources.