`juju export-bundle` with option for Terraform
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Hi,
Juju currently supports exporting bundles with `juju export-bundle`. Is it possible to expand that to allow exporting a Juju model into a Terraform plan (HCL)?
Example:
| terraform {
| required_providers {
| juju = {
| version = "~> 0.12.0"
| source = "juju/juju"
| }
| }
| }
|
| provider "juju" {}
|
| locals {
| juju_model_name = "prod-mymodel"
| }
|
| resource "juju_application" "my_application" {
| name = "my-application"
|
| model = local.juju_
|
| charm {
| name = "my-application
| revision = 9
| channel = "latest/stable"
| base = "ubuntu@22.04"
| }
|
| constraints = "arch=amd64 cores=4 mem=8192M root-disk=51200M root-disk-
| config = {
| my-config1 = "value1"
| my-config2 = "value2"
| }
| expose {}
|
| units = 2
| }
|
| resource "juju_integration" "myapp_to_percona" {
| model = juju_model.
|
| application {
| name = juju_applicatio
| endpoint = "db"
| }
|
| application {
| name = juju_applicatio
| endpoint = "server"
| }
| }
Changed in juju: | |
importance: | Undecided → Wishlist |
Changed in juju: | |
status: | New → Triaged |