canonical / charmed-5g

Charmed 5G is a secure, reliable and observable open source 5G network.
https://canonical-charmed-5g.readthedocs-hosted.com/
2 stars 0 forks source link

feat: Replacing Juju bundle with Terraform module in Getting Started tutorial #188

Closed Gmerold closed 7 months ago

Gmerold commented 7 months ago

Description

Updates the Getting Started tutorial to use Terraform modules instead of Juju bundle for Charmed 5G deployment.

Successful run depends on merging this fix.

Checklist:

markbeierl commented 7 months ago

Do we want to update the picture as well? image

markbeierl commented 7 months ago

Re-running Terraform will revert the change for the external_hostname:

Terraform will perform the following actions:

  # module.sdcore.module.traefik.juju_application.traefik-k8s will be updated in-place
  ~ resource "juju_application" "traefik-k8s" {
      ~ config      = {
          - "external_hostname" = "10.0.11.4.nip.io" -> null
            # (1 unchanged element hidden)
        }
        id          = "sdcore:traefik"
        name        = "traefik"
      + principal   = (known after apply)
        # (4 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

We should change the tutorial to make this modification via TF instead of directly against Juju

Gmerold commented 7 months ago

Do we want to update the picture as well? image

Done.

Gmerold commented 7 months ago

Re-running Terraform will revert the change for the external_hostname:

Terraform will perform the following actions:

  # module.sdcore.module.traefik.juju_application.traefik-k8s will be updated in-place
  ~ resource "juju_application" "traefik-k8s" {
      ~ config      = {
          - "external_hostname" = "10.0.11.4.nip.io" -> null
            # (1 unchanged element hidden)
        }
        id          = "sdcore:traefik"
        name        = "traefik"
      + principal   = (known after apply)
        # (4 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

We should change the tutorial to make this modification via TF instead of directly against Juju

True. Done.