Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform resources have too less data #575

Open
shundezhang opened this issue Sep 12, 2024 · 2 comments
Open

terraform resources have too less data #575

shundezhang opened this issue Sep 12, 2024 · 2 comments
Labels
kind/feature suggests new feature or enhancement

Comments

@shundezhang
Copy link

Description

It would be good to include more detailed data in resources.
For example, an application has the following:

$ terraform state show juju_application.kubernetes_worker
# juju_application.kubernetes_worker:
resource "juju_application" "kubernetes_worker" {
    config      = {
        "kubelet-extra-config" = jsonencode({})
    }
    constraints = "arch=amd64"
    id          = "k8s-calico:kubernetes-worker"
    model       = "k8s-calico"
    name        = "kubernetes-worker"
    placement   = "1,2"
    trust       = false
    units       = 2

    charm {
        base     = "[email protected]"
        channel  = "1.28/stable"
        name     = "kubernetes-worker"
        revision = 134
        series   = "focal"
    }
}

juju status command has more outputs including IP address and details of each unit.
Without those information it is unable to do other configuration based on what is created.

Urgency

Annoying bug in our test suite

Terraform Juju Provider version

0.13.0

Terraform version

1.9.5

Juju version

3.5.2

Terraform Configuration(s)

No response

Reproduce / Test

terraform apply

Debug/Panic Output

No response

Notes & References

No response

@Aflynn50 Aflynn50 added the kind/feature suggests new feature or enhancement label Sep 12, 2024
@hmlanigan
Copy link
Member

@shundezhang Please list your use cases and data required.

@shundezhang
Copy link
Author

Hi @hmlanigan what I was trying to do is to deploy a bunch of applications using juju, then run some script on one of the juju deployed machines. To do that I need to know the IP address of each machine deployed by Juju. Also in the juju status --format=json output, there are information such as IP, OS type, UUID, etc, it would be good to have the same information in juju provider's resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature suggests new feature or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants