title: Infrastructure as Code for Bitbucket Repos?
body: <p>Is there a way to create and configure BitBucket (Cloud) pipelines and advanced repo configuration options with "infrastructure as code" tools (in the genre of cloudformation, terraform, pulumi, etc.)?</p>
  
  <p>It looks like Terraform has some support, but I'm looking for something more advanced: things like the ability to set repository deployment and variable settings and possibly even set up pipelines. It looks like Bitbucket has quite an extensive REST api for some of these features already. But I don't see any obvious wrappers in the "infrastructure as code" space.</p>