terraform-provider-ibm
terraform-provider-ibm copied to clipboard
Implement "Avoid Edge Functions" functionality for ibm_cis_edge_functions_trigger
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
The CLI and UI give the ability to exclude certain URL patterns from edge function actions. I would like to be able to do that in Terraform as well. E.g. I want an action to trigger for *.mydomain.com
but not for api.mydomain.com
. Currently this isn't possible with the provider.
New or Affected Resource(s)
- ibm_cis_edge_functions_trigger
Potential Terraform Configuration
resource "ibm_cis_edge_functions_trigger" "exclude_api_mydomain_com" {
cis_id = ibm_cis_edge_functions_action.my_action.cis_id
domain_id = ibm_cis_edge_functions_action.my_action.domain_id
disabled = true
pattern_url = "api.mydomain.com/*"
}
References
The docs describe how this works via the UI here.