Changelog
⚠️ Warning
This release includes a number of breaking changes. Please ensure to validate
your configuration and review the changes from plan
before committing changes through apply
.
In v0.8.0
, the octopusdeploy_tag_set
has been modified significantly by hoisting its embedded tag
blocks into a separate a distinct resource (octopusdeploy_tag
). Please see #433 for more information about this change.
Additionally, the following resources have been removed:
octopusdeploy_account
octopusdeploy_deployment_target
octopusdeploy_feed
Each of these resources have been marked as deprecated for a while and it was time to remove them. More robust alternatives exist through the provider library (i.e. octopusdeploy_aws_account
).
Migrating from v0.7.*
to v0.8.0
If the configuration fails to validate
after updating to v0.8.0
then you can pin the version of the provider to the previous version: v0.7.73
:
terraform {
required_providers {
octopusdeploy = {
source = "OctopusDeployLabs/octopusdeploy"
version = "0.7.73" # avoid qualifiers for versions, which can be dangerous until v1.0.0
}
}
}
At a later time, you may migrate your existing state and configuration to the new resource types. This may be done by executing an import
on the resource to update your state. You will have to also update your configuration once this is done to align your state and configuration.
Example: octopusdeploy_feed
to octopusdeploy_nuget_feed
Assume the following resource:
resource "octopusdeploy_feed" "feed" {
download_attempts = 1
download_retry_backoff_seconds = 30
feed_uri = "https://api.nuget.org/v3/index.json"
feed_type = "NuGet"
is_enhanced_mode = true
password = "test-password"
name = "Test NuGet Feed (OK to Delete)"
username = "test-username"
}
The process to migrate from v0.7.*
to v0.8.0
requires three (3) steps:
- update configuration by replacing the resource (i.e.
octopusdeploy_feed
) with its replacement (i.e.octopusdeploy_nuget_feed
) import
the state to reflect these changes- update configuration to reflect your desired changes
Updating the configuration requires a new and empty resource:
resource "octopusdeploy_nuget_feed" "feed" {
}
Next, import the existing state via the CLI:
$ terraform import octopusdeploy_nuget_feed.feed "Feeds-123"
The address, octopusdeploy_nuget_feed.feed
will match the resource in your configuration. The ID field, "Feeds-123"
is the ID of the feed in Octopus Deploy.
Finally, you'll need to update the resource to reflect these changes:
resource "octopusdeploy_nuget_feed" "feed" {
download_attempts = 1
download_retry_backoff_seconds = 30
feed_uri = "https://api.nuget.org/v3/index.json"
is_enhanced_mode = true
password = "test-password"
name = "Test NuGet Feed (OK to Delete)"
username = "test-username"
}
New Features and Updates
- c7211a7: feat: updated libraries to v2 of Go API client library (@jbristowe)
- d2caa45: feat: updated tag and tag_set (@jbristowe)
Bug Fixes
- e0caa87: fix: set the tag set after it has been created (@jbristowe)
Other Work
- 5a7e2d8: Delete dependabot.yml (@jbristowe)
- cab4420: Merge pull request #423 from OctopusDeployLabs/chore/code-ql-updates (@jbristowe)
- bd1e4f7: Merge pull request #426 from OctopusDeployLabs/chore/contribution-guide (@jbristowe)
- b35efe7: Merge pull request #436 from OctopusDeployLabs/chore/remove-dependabot (@jbristowe)
- bed63e7: Merge pull request #438 from OctopusDeployLabs/fix/persist-tag-sets (@jbristowe)
- 80b3c36: Merge pull request #440 from OctopusDeployLabs/chore/update-readme (@jbristowe)
- 97d281c: Merge pull request #441 from OctopusDeployLabs/chore/update-documentation (@jbristowe)
- 8a7b547: Merge pull request #442 from OctopusDeployLabs/chore/update-workflows (@jbristowe)
- a70c1c2: chore!: removed account, feed, and worker resources (@jbristowe)
- 25583e8: chore: added build workflow (#424) (@jbristowe)
- 6133f81: chore: added contribution guide (@jbristowe)
- da77093: chore: added test options (@jbristowe)
- f507a03: chore: corrected semantics with sort order (@jbristowe)
- d9c7d2d: chore: mark computed only fields (@jbristowe)
- 6a34f4a: chore: removed unused functions (@jbristowe)
- c191ee7: chore: removed unused functions (@jbristowe)
- 8a56872: chore: update to Go 1.19 (@jbristowe)
- 3da3715: chore: updated CodeQL (@jbristowe)
- e5b4389: chore: updated README (@jbristowe)
- b39fd6a: chore: updated dependencies (@jbristowe)
- 39966e2: chore: updated documentation (@jbristowe)
- 5f1d2bb: chore: updated formatting (@jbristowe)
- 96407d8: chore: updated test (@jbristowe)
- aca6cdc: chore: updated tests (@jbristowe)
- 8534332: refactor: moved common patterns into functions (@jbristowe)