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

Feature graph shortname #11352

Closed
wants to merge 7 commits into from
Closed

Conversation

heagma
Copy link
Contributor

@heagma heagma commented Nov 15, 2022

Description

This change will add the flag --show-resource-name to the pulumi stack graph command that will allow to display just the name of the resources and not their full URNs when creating a stack graph.

Usage

Without the flag: pulumi stack graph example-graph
example-graph output:

strict digraph {
    Resource0 [label="urn:pulumi:dev::pulumi-tests::pulumi:pulumi:Stack::pulumi-tests-dev"];
    Resource1 [label="urn:pulumi:dev::pulumi-tests::pulumi:providers:aws::default"];
    Resource2 [label="urn:pulumi:dev::pulumi-tests::aws:s3/bucket:Bucket::my-bucket"];
    Resource2 -> Resource0 [color = "#AA6639"];
}

Using the flag: pulumi stack graph example-graph --show-resource-name
example-graph output:

strict digraph {
    Resource0 [label="pulumi-tests-dev"];
    Resource1 [label="default"];
    Resource2 [label="my-bucket"];
    Resource2 -> Resource0 [color = "#AA6639"];
}

Fixes #10663

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Nov 15, 2022

Changelog

[uncommitted] (2023-01-12)

Features

  • [cli] adds option to have resource name in the node graph instead of full urns

@github-actions
Copy link

PR is now waiting for a maintainer to take action.

Note for the maintainer: Commands available:

  • /run-acceptance-tests - used to test run the acceptance tests for the project
  • /run-codegen - used to test the Pull Request against downstream codegen
  • /run-docs-gen - used to test the Pull Request against documentation generation

@github-actions
Copy link

PR is now waiting for a maintainer to take action.

Note for the maintainer: Commands available:

  • /run-acceptance-tests - used to test run the acceptance tests for the project
  • /run-codegen - used to test the Pull Request against downstream codegen
  • /run-docs-gen - used to test the Pull Request against documentation generation

pkg/cmd/pulumi/stack_graph.go Outdated Show resolved Hide resolved
pkg/cmd/pulumi/stack_graph.go Outdated Show resolved Hide resolved
RobbieMcKinstry and others added 3 commits January 11, 2023 22:08
…aph.yaml

Co-authored-by: Fraser Waters <frassle@gmail.com>
Co-authored-by: Fraser Waters <frassle@gmail.com>
Co-authored-by: Fraser Waters <frassle@gmail.com>
@RobbieMcKinstry RobbieMcKinstry added the area/cli UX of using the CLI (args, output, logs) label Jan 12, 2023
@RobbieMcKinstry RobbieMcKinstry added this to the 0.83 milestone Jan 12, 2023
@iwahbe
Copy link
Member

iwahbe commented Jan 12, 2023

I'm closing as a duplicate of #11383.

@iwahbe iwahbe closed this Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli UX of using the CLI (args, output, logs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Short names in export graphviz file
5 participants