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

Hybrid Security Architectures Part 5 - NAP output "external_name" is not getting populated in Terraform Cloud outputs #87

Open
ishikaray16 opened this issue Oct 24, 2024 · 0 comments

Comments

@ishikaray16
Copy link

ishikaray16 commented Oct 24, 2024

Describe the bug
While testing [https://community.f5.com/kb/technicalarticles/f5-hybrid-security-architectures-part-5---f5-xc-big-ip-apm-cis-and-nginx-ingress/320168]
NGINX App Protect output "external_name" is not getting populated in Terraform Cloud outputs. Resulting in the below error in the run.

│ Error: Error in function call │ │ on ingress.tf line 9, in resource "kubernetes_ingress_v1" "***-ingress": │ 9: host = try(data.tfe_outputs.nap[0].values.external_name, data.tfe_outputs.nic[0].values.external_name) │ ├──────────────── │ │ while calling try(expressions...) │ │ Call to function "try" failed: no expression succeeded: │ - Unsupported attribute (at ingress.tf:9,48-62) │ This object does not have an attribute named "external_name". │ - Unsupported attribute (at ingress.tf:9,94-108) │ This object does not have an attribute named "external_name". │ │ At least one expression must produce a successful result.

To Reproduce
Steps to reproduce the behavior:

  1. Configure github and Terraform cloud with variables and tokens mentioned in the article
  2. Create/navigate to branch deploy-xcbn-cis, and configure infra/terraform.tfvars accordingly
  3. Push the changes to trigger the run
  4. Infra, EKS, BIGIP base, BIGIP CIS, NAP were successful
  5. One of the outputs created from NAP run is not accessible to ARCADIA runs

Expected behavior
Output "external_name" should have been populated in terraform cloud and logs under NAP.

Screenshots
Screenshot 2024-10-17 at 11 28 45 AM
Screenshot 2024-10-17 at 11 29 21 AM

Desktop (please complete the following information):

  • OS: mac
  • Browser: chrome
  • Version 130.0.6723.59

Smartphone (please complete the following information): NA

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Also, instead of creating new nginx-service the run is only refreshing the already existing resource even though no resource is available in the region.
Screenshot 2024-10-17 at 9 20 08 PM

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

1 participant