'Use Terraform to provision Linode object storage as a static website?
I'm new to Terraform, and I'm trying to re-build my web infrastructure with it. Part of that is getting my static sites off of VM's and on to object storage that's much easier to manage.
So for each website I want to:
- create a bucket
- configure it as a static website
- trigger a Github action to upload all files from a repo to the bucket
- point a CNAME record from Cloudflare to it
The only way I can figure to turn a bucket into a static website is with linode-cli:
linode-cli obj ws-create <MY-BUCKET>
Is there a way to do this with the linode provider in Terraform? If not, what's the "elegant" way to execute linode-cli from Terraform? Is there a better way to do what I want?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
