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

Have a question #2

Open
zmanhogmail opened this issue Mar 10, 2023 · 3 comments
Open

Have a question #2

zmanhogmail opened this issue Mar 10, 2023 · 3 comments

Comments

@zmanhogmail
Copy link

Is it possible to show the actual name of source_groups, destination_groups,scope and services. Instead of the ID in the terraform plan?

  • source_groups = [
    + "/infra/domains/default/groups/bac7f9c7-d80c-4bfe-8663-d3c9f973e2fb", (CHANGE TO "/infra/domains/default/groups/APPServer")
    ]

  • destination_groups = [
    + "/infra/domains/default/groups/bac7f9c7-d80c-4bfe-8663-d3c9f973e2fb", (CHANGE TO "/infra/domains/default/groups/DBServer")
    ]

  • scope = [
    + "/infra/domains/default/groups/bac7f9c7-d80c-4bfe-8663-d3c9f973e2fb", (CHANGE TO "/infra/domains/default/groups/VLAN123")
    ]

  • services = [
    + "/infra/services/59a29e53-9901-44d2-9589-f770c36d87bb", (CHANGE TO "/infra/services/TCP1433")
    ]

@zmanhogmail
Copy link
Author

or can add the Change Output to show the changed rules?
eg:
Output:
display_name: Allow APP to DB
source_groups: APP_SERVER
destination_groups: DB_SERVER
services: TCP1433,HTTPS
scope: VLAN123

display_name: Allow WEB to APP
source_groups: WEB_SERVER
destination_groups: APP_SERVER
services: HTTPS,TCP80
scope: VLAN124

@netmemo
Copy link
Owner

netmemo commented Mar 12, 2023

Hello,
For the plan this is difficult to change what will be displayed. You would need to modify the provider itself. This is not linked to the
Terraform module.
For the output you have more flexibility and you can create locals or variables that will match the source/group/port and display them.
Cheers,
Noël

@zmanhogmail
Copy link
Author

Hi Noël,
Thank you for your reply. I am creating a python to try to display this output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants