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

DLB certificates issue after initial apply #39

Closed
ccortinhas-pmi opened this issue Apr 21, 2022 · 3 comments · Fixed by #45
Closed

DLB certificates issue after initial apply #39

ccortinhas-pmi opened this issue Apr 21, 2022 · 3 comments · Fixed by #45
Assignees
Labels
enhancement New feature or request

Comments

@ccortinhas-pmi
Copy link

Hi guys,

I encountered an issue where after successfully deploying a DLB with certificates, every subsequent terraform plan/apply will re-apply the ssl_endpoints settings despite no changes were made.

The following code reproduces the issue:

resource "anypoint_dlb" "dlb" {
  org_id = var.bg_id
  vpc_id = "vpc-XXXXXXXXXXXXX"
  name = "sample-dlb"
  state = "started"
  ip_whitelist = ["0.0.0.0/0"]
  http_mode = "off"
  tlsv1 = false
  ssl_endpoints {
    public_key_label = "tf-public-key-name"
    public_key = ""
    private_key_label = "tf-private-key-name"
    private_key = ""
    verify_client_mode = "off"
    mappings {
      input_uri = "{app}/"
      app_name = "{app}"
      app_uri = "/" 
    }
  }
}

Additionally every subsequent plan/apply also detects a drift in state: ~ state = "STARTED" -> "started". This one seems to be just a case-sensitive matter.

@ccortinhas-pmi ccortinhas-pmi changed the title DLB certificates DLB certificates issue after initial apply Apr 21, 2022
@RamziChoueri2903
Copy link

RamziChoueri2903 commented May 12, 2022

Can someone pick this up, please? @rubycube would you be able to fix this? I see that issue as major adoption obstacle for our customers.

Ramzi Choueri
MuleSoft

@RamziChoueri2903
Copy link

@soufi as discussed

@soufi soufi self-assigned this Jun 8, 2022
@soufi soufi added the enhancement New feature or request label Jun 8, 2022
@soufi
Copy link
Contributor

soufi commented Jun 9, 2022

Hi @ccortinhas-pmi,
This issue is related to the following issue on Terraform.

It is very tricky to handle list-type attributes diff. I'm trying to find a way where the DLB current structure wouldn't be affected. Any suggestions are welcome.

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

Successfully merging a pull request may close this issue.

3 participants