v2.0.0
ENHANCEMENTS:
- Improved test coverage.
NOTES:
-
As part of the ongoing deprecation of Terraform 0.11, the LaunchDarkly provider now only supports Terraform 0.12 and higher.
-
This release changes the way LaunchDarkly recommends you manage
launchdarkly_environment
andlaunchdarkly_project
resources in tandem. It is recommended you do not manage environments as separate resources unless you wish to manage the encapsulating project externally (not via Terraform). As such, at least oneenvironments
attribute will now beRequired
on thelaunchdarkly_project
resource, but you will also be able to manage environments outside of Terraform on Terraform-managed projects if you do not import them into the Terraform state as a configuration block on the encapsulating project resource. -
The deprecated
launchdarkly_destination
resourceenabled
field has been removed in favor ofon
.on
now defaults tofalse
when not explicitly set. -
The
default_on_variation
anddefault_off_variation
properties on thelaunchdarkly_feature_flag
resource have now been replaced with a computeddefaults
block containing the propertieson_variation
andoff_variation
that refer to the variations in question by index rather than value. -
The
launchdarkly_feature_flag_environment
resource and data sourcetarget
attribute schema has been modified to include a newvariation
attribute. Herevariation
represents the index of the feature flag variation to serve if a user target is matched. -
The deprecated
launchdarkly_feature_flag_environment
resourcetargeting_enabled
field has been removed in favor ofon
.on
now defaults tofalse
when not explicitly set. -
The deprecated
launchdarkly_feature_flag_environment
resourceuser_targets
field has been removed in favor oftargets
.targets
now defaults to null when not explicitly set. -
The deprecated
launchdarkly_feature_flag_environment
resourceflag_fallthrough
field has been removed in favor offallthrough
. -
The deprecated
launchdarkly_webhooks
resourceenabled
field has been removed in favor ofon
.on
is now a required field. -
The deprecated
launchdarkly_webhooks
resourcepolicy_statements
field has been removed in favor ofstatements
. -
off_variation
andfallthrough
(previouslyflag_fallthrough
) onlaunchdarkly_feature_flag_environment
are nowRequired
fields. -
Most optional fields will now be removed or revert to their null / false value when not explicitly set and / or when removed, including:
-
on
on thelaunchdarkly_destination
resource -
include_in_snippet
on thelaunchdarkly_project
resource -
on the
launchdarkly_environment
resource and inenvironment
blocks on thelaunchdarkly_project
resource:-
secure_mode
-
default_track_events
-
require_comments
-
confirm_changes
-
default_ttl
(reverts to0
)
-
-
on the
launchdarkly_feature_flag_environment
resource:-
on
(previouslytargeting_enabled
, reverts tofalse
) -
rules
-
targets
(previouslyuser_targets
) -
prerequisites
-
track_events
(reverts tofalse
)
-
-
BUG FIXES:
-
Fixed a bug in the
launchdarkly_webhook
resource wherestatements
removed from the configuration were not being deleted in LaunchDarkly. -
The
launchdarkly_feature_flag
resourcemaintainer_id
field is now computed and will update the state with the most recently-set value when not explicitly set. -
The
client_side_availability
attribute on thelaunchdarkly_feature_flag
andlaunchdarkly_project
data sources has been corrected to an array with a single map item. This means that you will need to add an index 0 when accessing this property from the state (ex.client_side_availability.using_environment_id
will now have to be accessed asclient_side_availability.0.using_environment_id
).