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

azurerm_subnet: Support for multiple prefixes with address_prefixes #6493

Merged
merged 1 commit into from
Apr 27, 2020
Merged

azurerm_subnet: Support for multiple prefixes with address_prefixes #6493

merged 1 commit into from
Apr 27, 2020

Commits on Apr 24, 2020

  1. subnet: Support address_prefixes for multiple prefixes (ipv6)

    The azure subnet resource supports addressPrefix when one prefix is available and addressPrefixes when two or or more are set (for instance, when configuring an ipv4 and ipv6 dual stack configuration for a network). Update azurerm_subnet to allow either address_prefix or address_prefixes as input, where the latter is a list of string. Check that at least one is set, and mark the older address_prefix as deprecated.
    
    The data source for subnet is modified to always return address_prefixes to simplify retrieval (although this could be changed to always return the first address prefix as address_prefix).
    
    Today, if two prefixes are specified via CLI or Azure UI the data source returns no address_prefix and it is not possible to create a new subnet with two prefixes via Terraform.
    
    Fixes #5140
    fabianofranz committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    bf5fa11 View commit details
    Browse the repository at this point in the history