FEATURES:
- Add
no_access
role as a valid value for therole
key for thelaunchdarkly_team_member
resource.
FEATURES:
- Added
launchdarkly_team
data source and provider.
NOTES:
- Updated LaunchDarkly go api client from v7 to v10.
BUG FIXES:
- Remove invalid configurations from the
launchdarkly_audit_log_subscription
resource.
BUG FIXES:
- The
launchdarkly_feature_flag_environment
data source now checks whether the environment exists and prints out a more descriptive error. #101
NOTES:
- Upgrade Go version to 1.18
FEATURES:
- Added the
base_permissions
field to thelaunchdarkly_custom_role
resource.
NOTES:
- Removed callout to
bypassRequiredApproval
action in documentation pending further development. - Fix formatting in some documentation
ENHANCEMENTS:
- Added the
hide_member_details
argument to the Datadogconfig
for thelaunchdarkly_audit_log_subscription
resource. Whenhide_member_details
istrue
, LaunchDarkly member information will be redacted before events are sent to Datadog.
NOTES:
- Added a callout to the
bypassRequiredApproval
action in documentation.
FEATURES:
- Added Slack webhooks to the
launchdarkly_audit_log_subscription
resource and data source. #16 - Added more Datadog host URLs to the Datadog
launchdarkly_audit_log_subscription
resource.
BUG FIXES:
- Fixed an issue where the
config
was not being set on thelaunchdarkly_audit_log_subscription
data source.
BUG FIXES:
-
Fixed a bug preventing
launchdarkly_flag_trigger
s from being created in theenabled
state. -
Fixed a bug introduced in v2.2.0 where
launchdarkly_segments
withrule
blocks not containing aweight
were defaulting to aweight
of 0.
FEATURES:
-
Added a
launchdarkly_team_members
data source to allow using multiple team members in one data source. -
Added a new
launchdarkly_metric
resource and data source for managing LaunchDarkly experiment flag metrics. -
Added a new
launchdarkly_flag_triggers
resource and data source for managing LaunchDarkly flag triggers. -
Added a new
launchdarkly_relay_proxy_configuration
resource and data source for managing configurations for the Relay Proxy's automatic configuration feature. -
Added a new
launchdarkly_audit_log_subscription
resource and data source for managing LaunchDarkly audit log integration subscriptions.
ENHANCEMENTS:
-
Updated tests to use the constant attribute keys defined in launchdarkly/keys.go.
-
Added a pre-commit file with a hook to alphabetize launchdarkly/keys.go
-
Improved 409 and 429 retry handling.
FEATURES:
- Added
default_client_side_availability
block to thelaunchdarkly_project
resource to specify whether feature flags created under the project should be available to client-side SDKs by default.
BUG FIXES:
- Fixed a bug in the
launchdarkly_project
andlaunchdarkly_environment
resources which caused Terraform to crash when environment approvals settings are omitted from the LaunchDarkly API response.
NOTES:
-
The
launchdarkly_project
resource's argumentinclude_in_snippet
has been deprecated in favor ofdefault_client_side_availability
. Please update your config to usedefault_client_side_availability
in order to maintain compatibility with future versions. -
The
launchdarkly_project
data source's attributeclient_side_availability
has been renamed todefault_client_side_availability
. Please update your config to usedefault_client_side_availability
in order to maintain compatibility with future versions.
ENHANCEMENTS:
- Upgraded the LaunchDarkly API client to version 7.
- Flag resource creation respects project level SDK availability defaults.
FEATURES:
- Added
client_side_availability
block to thelaunchdarkly_feature_flag
resource to allow setting whether this flag should be made available to the client-side JavaScript SDK using the client-side ID, mobile key, or both.
NOTES:
- The
launchdarkly_feature_flag
resource's argumentinclude_in_snippet
has been deprecated in favor ofclient_side_availability
. Please update your config to useclient_side_availability
in order to maintain compatibility with future versions.
ENHANCEMENTS:
- Upgraded the LaunchDarkly API client to version 7.
BUG FIXES:
-
Fixed an oversight in the approval settings where the environment
approval_settings
propertycan_apply_declined_changes
was defaulting tofalse
where it should have been defaulting totrue
in alignment with the LaunchDarkly API. -
Updated an error message.
FEATURES:
-
Added
approval_settings
blocks to thelaunchdarkly_environment
resource and nestedenvironments
blocks on thelaunchdarkly_project
resource. -
Added a boolean
archive
attribute on thelaunchdarkly_feature_flag
resource to allow archiving and unarchiving flags instead of deleting them.
BUG FIXES:
- Fixed a bug resulting in nested environments not being imported on the
launchdarkly_project
resource. As a result, all of a project's environments will be saved to the Terraform state during an import of thelaunchdarkly_project
resource. Please keep in mind if you have not added all of the existing environments to your Terraform config before importing alaunchdarkly_project
resource, Terraform will delete these environments from LaunchDarkly during the nextterraform apply
. If you wish to manage project properties with Terraform but not nested environments consider using Terraform's ignore changes lifecycle meta-argument.
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
).
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
).
BUG FIXES:
- Fixes a bug where attempts to create
launchdarkly_feature_flag
variations with an empty string value were throwing a panic.
NOTES:
-
The
launchdarkly_feature_flag_environment
resource and data source'sflag_fallthrough
argument has been deprecated in favor offallthrough
. Please update your config to usefallthrough
in order to maintain compatibility with future versions. -
The
launchdarkly_feature_flag_environment
resource and data source'suser_targets
argument has been deprecated in favor oftargets
. Please update your config to usetargets
in order to maintain compatibility with future versions.
FEATURES:
- Added the
creation_date
attribute to thelaunchdarkly_segment
data source and resource.
ENHANCEMENTS:
-
Upgraded the Terraform plugin SDK to v1.17.2.
-
Upgraded the LaunchDarkly API client to v5.3.0.
-
Added example team member resource configs in
examples/team_member
.
BUG FIXES:
-
Updated the
project_key
attribute on the environment resource to beRequired
in keeping with the API. -
Added validation for
launchdarkly_access_token
resource creation and updates. -
Fixed a bug in the team member resource where changing the email in the configuration would result in no real changes. Changing the email will now force a replacement.
NOTES:
-
The
launchdarkly_feature_flag_environment
resource'stargeting_enabled
argument has been deprecated in favor ofon
. Please update your config to useon
in order to maintain compatibility with future versions. -
The
launchdarkly_access_token
resource'spolicy_statements
argument has been deprecated in favor ofinline_roles
. Please update your config to useinline_roles
in order to maintain compatibility with future versions.
FEATURES:
- Added support for an
azure-event-hubs
data sourcekind
on thelaunchdarkly_destination
resource.
ENHANCEMENTS:
-
Improved 429 retry handling.
-
Upgraded the Go version to 1.16.
-
Upgraded the LaunchDarkly API client to v5.1.0.
BUG FIXES:
-
Fixed a bug in the feature flag resource where multivariate (non-boolean) resource config with zero variations would create a boolean flag.
-
Fixed a bug in the feature flag resource where
default_on_variation
anddefault_off_variation
would still show up interraform plan
following their removal. -
Updated the destination
config
Elem
type toTypeString
and made theconfig
field required. Added improved validation to check fields for different destination kinds.
NOTES:
- The
launchdarkly_destination
resource'senabled
argument has been deprecated in favor ofon
. Please update your config to useon
in order to maintain compatibility with future versions. - The
launchdarkly_webhook
resource'spolicy_statements
argument has been deprecated in favor ofstatements
. Please update your config to usestatements
in order to maintain compatibility with future versions. - The
launchdarkly_webhook
data source'spolicy_statements
attribute has been deprecated in favor ofstatements
. Please update all references ofpolicy_statements
tostatements
in order to maintain compatibility with future versions. - The
launchdarkly_webhook
resource'senabled
argument has been deprecated in favor ofon
. Please update your config to useon
in order to maintain compatibility with future versions. - The
launchdarkly_webhook
data source'senabled
attribute has been deprecated in favor ofon
. Please update your all references ofenabled
toon
in order to maintain compatibility with future versions.
BUG FIXES:
- Fixed a bug preventing number and boolean values in targeting rules clauses from working. The new
value_type
attribute must be set in order to utilize number and boolean values. All values for a given targeting rule clause must be of the same type. #51
FEATURES:
-
Added a
launchdarkly_project
data source. -
Added a
launchdarkly_environment
data source. -
Added a
launchdarkly_feature_flag
data source. -
Added a
launchdarkly_feature_flag_environment
data source. -
Added a
launchdarkly_segment
data source. -
Added a
launchdarkly_webhook
data source.
ENHANCEMENTS:
- Upgraded the LaunchDarkly API version to 3.5.0.
BUG FIXES:
-
Resolved issues with the
launchdarkly_project
'senvironments
attribute. This attribute is no longer marked as deprecated and should be used when you wish to override the behavior of creatingTest
andProduction
environments during project creation. -
Fixed a bug where creating a
launchdarkly_feature_flag_environment
with anoff_variation
was not actually setting the off variation.
NOTES:
- The
launchdarkly_project
'senvironments
attribute is no longer marked ascomputed
. This means that if you havelaunchdarkly_project
resources without nestedenvironments
that were created before this version, you will see a diff denoting the removal of the computed environments from your state. It is safe to apply this change as no changes be made to your LaunchDarkly resources when applied.
FEATURES:
- Fixed a bug where omitted optional
launchdarkly_feature_flag_environment
parameters where making unwanted changes to the resource upon creation. #38
FEATURES:
- Added the
launchdarkly_access_token
resource.
FEATURES:
- Added the
launchdarkly_access_token
resource.
NOTES:
- Point
go.mod
to github.com/launchdarkly/terraform-provider-launchdarkly - Automatically set version header at build time
NOTES:
- Patch release to support Terraform 0.13
ENHANCEMENTS:
- Change data source names from data_source* to data_source_launchdarkly*
- Add pagination for pulling team members in accordance with the latest version of the LaunchDarkly API
BUG_FIXES:
- Fix bug with setting JSON arrays as variation values.
- Fix two-step create that required making an additional API update call to set all parameters.
BUG_FIXES:
- Improve handling of API rate limits. #26
FEATURES:
- Added
default_on_variation
anddefault_off_variation
tolaunchdarkly_feature_flag
. These optional attributes can be used to set the default targeting behavior for flags in newly created environments. #10 #18
BUG_FIXES:
- Improve handling of API rate limits.
FEATURES:
- Added
/examples
, a directory containing a variety of detailed usage examples.
BUG_FIXES:
- Fix non-empty plan after creating a
launchdarkly_team_member
with a custom role. - Handle missing user target variations in
launchdarkly_feature_flag_environment
#23
BUG_FIXES:
- Fix import bug in
launchdarkly_project
introduced in 1.2.0 #21
NOTES:
- The
environments
block inlaunchdarkly_project
has been deprecated in favor of thelaunchdarkly_environment
resource. Please update your existing configurations to maintain future compatibility.
FEATURES:
- Add new resource
launchdarkly_destination
. This resource is used to manage LaunchDarkly data export destinations. - Add
policy_statements
tolaunchdarkly_webhook
andlaunchdarkly_custom_role
#16.
BUG_FIXES:
- Fixed bug preventing large number variations from being saved in the state correctly. #14
- Fixed bug in import validation. #19
NOTES:
- The
policy
block inlaunchdarkly_custom_role
has been deprecated in favor ofpolicy_statements
. Please migrate your existing configurations to maintain future compatibility.
FEATURES:
- Add
bucket_by
argument tolaunchdarkly_feature_flag_environment
to enable custom attributes for percentage rollouts. - Add
require_comments
andconfirm_changes
arguments tolaunchdarkly_environment
.
ENHANCEMENTS:
- Update keys.go to make keys uppercase.
BUG FIXES:
- Fix pagination bug with
launchdarkly_team_member
data source. - Fix custom roles acceptance test race condition.
ENHANCEMENTS:
- Use randomized project keys in acceptance tests so they can be run in parallel.
BUG FIXES:
- Set the LaunchDarkly API version header to version
20191212
FEATURES:
- Add tags attribute to
launchdarkly_environment
resource. #5 - Add
maintainer_id
input validation.
ENHANCEMENTS:
- Improve
tags
input validation.
BUG FIXES:
- Allow flag
maintainer_id
to be unset. #6 - Fix typo in initialization error message. Thanks @jen20
- Flags created with invalid schema are deleted instead of left dangling.
NOTES:
- First release.