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 that
4 Replies
Cyb3r-Jak3
Cyb3r-Jak38mo ago
You’ll also need to make sure you have a proxied record for each domain you want to redirect
Roman
RomanOP8mo ago
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.
Cyb3r-Jak3
Cyb3r-Jak38mo ago
Correct. You can either define list items in the list resource or as separate list item resources.
Want results from more Discord servers?
Add your server