Skip to content

[Bug]: Perpetual diff in aws_ec2_client_vpn_endpointΒ #26881

Open
@sidekick-eimantas

Description

Terraform Core Version

1.2.7

AWS Provider Version

4.27.0

Affected Resource(s)

aws_ec2_client_vpn_endpoint

Expected Behavior

No perpetual diff

Actual Behavior

banner_text is in perpetual diff

module.vpn_ireland.aws_ec2_client_vpn_endpoint.this will be updated in-place
  ~ resource "aws_ec2_client_vpn_endpoint" "this" {
        id                     = "cvpn-endpoint-nnnnnnnnnnnnnn"
        tags                   = {
            "Name" = "ireland-office"
        }
        # (15 unchanged attributes hidden)

      ~ client_login_banner_options {
          ~ banner_text = <<-EOT
                Warning: This system is restricted to Sidekick Money Ltd
                authorized users for business purposes only. Unauthorized access
                or use is a violation of company policy and the law. This system
                may be monitored for administrative and security reasons. By
                proceeding, you acknowledge that (1) you have read and understand
                this notice and (2) you consent to the system monitoring.
            EOT
            # (1 unchanged attribute hidden)
        }

        # (3 unchanged blocks hidden)
    }

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_ec2_client_vpn_endpoint" "this" {
  client_cidr_block = var.client_cidr_block
  client_login_banner_options {
    enabled     = true
    banner_text = file("${path.module}/banner.txt")
  }
  description            = var.description
  dns_servers            = var.dns_servers
  security_group_ids     = var.security_group_ids
  self_service_portal    = "enabled"
  server_certificate_arn = aws_acm_certificate.this.arn
  session_timeout_hours  = var.session_timeout_hours
  split_tunnel           = var.split_tunnel
  transport_protocol     = "udp"
  vpc_id                 = var.vpc_id
  vpn_port               = 1194 # openvpn default udp port

  tags = { Name = var.name }
}

Steps to Reproduce

  • terraform apply
  • terraform plan

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No response

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/vpnclientIssues and PRs that pertain to the vpnclient service.verifyPertains to the verify package (i.e., provider-level validating, diff suppression, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions