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

Update Terraform fastly to v5 #1221

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Update Terraform fastly to v5 #1221

merged 1 commit into from
Apr 11, 2024

Conversation

govuk-ci
Copy link
Contributor

@govuk-ci govuk-ci commented Apr 9, 2024

This PR contains the following updates:

Package Type Update Change
fastly (source) required_provider major ~> 2.1 -> ~> 5.0

Release Notes

fastly/terraform-provider-fastly (fastly)

v5.7.1

Compare Source

ENHANCEMENTS:

  • feat(scalyr): add project_id #​822

DEPENDENCIES:

  • chore: avoid extra string interpolation #​820

v5.7.0

Compare Source

BUG FIXES:

  • remove: mTLS from state if API returns 404 #​794
  • fix(docs): YAML Frontmatter formatting in product_enablement.md #​788
  • fix(request_settings): allow unsetting of action #​814

ENHANCEMENTS:

  • ci: add golangci-lint action #​777
  • feat(logging_newrelicotlp): add new logging block #​786
  • ci: slash command to trigger tests for forked PRs #​785
  • ci: fix ok-to-test #​796
  • refactor(all): support go-fastly v9 #​808
  • feat(fastly_alert): implement resource and documentation #​810

DEPENDENCIES:

  • build(deps): bump hashicorp/setup-terraform from 2 to 3 #​776
  • build(deps): bump github.com/fastly/go-fastly/v8 from 8.6.2 to 8.6.4 #​779
  • build(deps): bump google.golang.org/grpc from 1.57.0 to 1.57.1 #​780
  • build(deps): bump actions/setup-go from 4 to 5 #​789
  • build(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 #​793
  • build(deps): bump golang.org/x/net from 0.17.0 to 0.19.0 #​784

v5.6.0

Compare Source

BUG FIXES:

  • fix(product_enablement): avoid accidentally disabling products on update #​763

ENHANCEMENTS:

  • refactor(product_enablement): make Read() logic consistent with other resource types #​773

DEPENDENCIES:

  • build(deps): bump github.com/fastly/go-fastly/v8 from 8.6.1 to 8.6.2 #​765
  • build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0 #​771
  • build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0 #​770

DOCUMENTATION:

  • docs: product enablement #​762
  • doc: rename Compute@Edge to Compute #​769

v5.5.0

Compare Source

ENHANCEMENTS:

  • feat(backend): support share_key attribute #​747
  • test(interface): add more resources #​746
  • test(interface): add more fastly_service_vcl attributes/blocks #​756
  • test(interface): add rate_limiter resource #​759

BUG FIXES:

  • fix: use paginator to fetch all ACL entries #​758

DEPENDENCIES:

  • build(deps): bump actions/checkout from 3 to 4 #​744
  • build(deps): bump github.com/fastly/go-fastly/v8 from 8.5.9 to 8.6.1 #​745
  • build(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.28.0 to 2.29.0 #​752
  • build(deps): bump goreleaser/goreleaser-action from 4 to 5 #​754
  • build(deps): bump golang.org/x/net from 0.14.0 to 0.15.0 #​753

v5.4.0

Compare Source

ENHANCEMENTS:

  • feat(fastly_secretstore): implement resource and documentation #​707
  • ci: validate interface not broken #​735

BUG FIXES:

  • fix(product_enablement): add additional error message filter #​740

DEPENDENCIES:

  • build: update all dependencies #​739
  • build(deps): bump golang.org/x/net from 0.12.0 to 0.14.0 #​734

v5.3.1

Compare Source

ENHANCEMENTS:

  • feat(package): make package optional #​733

BUG FIXES:

  • revert(backend): revert removal of error_threshold attribute #​731

v5.3.0

Compare Source

ENHANCEMENTS:

  • feat: create fastly_configstores data source #​729
  • feat: create fastly_kvstores data source #​730

BUG FIXES:

  • fix(request_settings): don't send empty string for request_condition #​722
  • fix(backend): remove redundant error_threshold attribute #​731

DEPENDENCIES:

  • build(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2 #​723
  • build(deps): bump github.com/hashicorp/terraform-plugin-docs #​726
  • build(deps): bump golang.org/x/net from 0.11.0 to 0.12.0 #​725
  • build(deps): bump github.com/fastly/go-fastly/v8 from 8.5.4 to 8.5.7 #​727

v5.2.2

Compare Source

BUG FIXES:

  • fix(stores): remove store from state if not found remotely #​719

DEPENDENCIES:

  • build(deps): bump go-fastly to latest 8.5.4 #​720

v5.2.1

Compare Source

DEPENDENCIES:

  • build(deps): update go-fastly to latest 8.5.2 release #​717

v5.2.0

Compare Source

ENHANCEMENTS:

  • feat: add file_max_bytes attribute to logging_s3 resource #​711

BUG FIXES:

  • fix(rate_limiter): add rate limter ID to delete call #​714
  • fix(rate_limiter): lookup new ID before actioning a deletion #​715

DEPENDENCIES:

  • build(deps): bump golang.org/x/net from 0.10.0 to 0.11.0 #​712

v5.1.0

Compare Source

ENHANCEMENTS:

  • feat(kv_store): support KV Store #​691
  • feat(mutual_authentication): implement mTLS resource #​702
  • feat(config_store): implement config store resource #​705

BUG FIXES:

  • fix(rate_limiter): fix multiple runtime panics #​706

DEPENDENCIES:

  • build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 #​700
  • build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 #​704
  • build(deps): bump github.com/hashicorp/terraform-plugin-docs from 0.14.1 to 0.15.0 #​709

v5.0.0

Compare Source

BREAKING:

There was a long-standing issue with how Terraform reacted to the package.tar.gz file that the CLI produces. Effectively, hashing the package was inconsistent and caused Terraform to think the code had changed even when it hadn't.

To resolve the issue the Package API now returns a new metadata property (files_hash) that calculates the hash from a sorted list of the files within the package.

This PR updates the Terraform provider to use this new property instead of the original hashsum metadata property and exposes a new fastly_package_hash data source that will generate the appropriate value for the source_code_hash attribute.

Although the public interface has not changed, the underlying implementation changes have meant customers will no longer be able to use the previous approach of using filesha512 to generate a hash from their package file. So we must consider this PR a breaking change.

This does require a slight change to a customer's process, which prior to this release looked like this...

source_code_hash = filesha512("package.tar.gz")

As of this release, we recommend the use of the fastly_package_hash data source...

data "fastly_package_hash" "example" {
  filename = "./path/to/package.tar.gz"
}

resource "fastly_service_compute" "example" {

v4.3.3

Compare Source

BUG FIXES:

  • fix(gcs): project_id should be optional #​693

DEPENDENCIES:

  • build(deps): bump golang.org/x/net from 0.9.0 to 0.10.0 #​692

v4.3.2

Compare Source

BUG FIXES:

  • fix(product_enablement): avoid unexpected diff #​689

v4.3.1

Compare Source

ENHANCEMENTS:

  • Bump go-fastly to new v8 major release to add project-id in GCS for logging #​685

BUG FIXES:

  • fix(product_enablement): error message check was too specific #​687

v4.3.0

Compare Source

ENHANCEMENTS:

  • feat(data_source): new dictionaries data source #​682

DEPENDENCIES:

  • build(deps): bump golang.org/x/net from 0.8.0 to 0.9.0 #​680
  • build(deps): bump github.com/bflad/tfproviderlint from 0.28.1 to 0.29.0 #​681

v4.2.0

Compare Source

ENHANCEMENTS:

  • feat(ratelimiter): implement Rate Limiter API #​678

v4.1.2

Compare Source

BUG FIXES:

  • fix(fastly_service_vcl): validate snippet names #​673
  • fix(fastly_service_vcl): don't call http3 endpoint if already enabled #​675

DEPENDENCIES:

  • Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.26.0 to 2.26.1 #​671

v4.1.1

Compare Source

BUG FIXES:

  • fix(tls/subscriptions): tls configuration id should always be passed #​670

DOCUMENTATION:

  • docs(tls/subscriptions): clarify default tls config commit

DEPENDENCIES:

  • build(dependencies): bump github.com/hashicorp/terraform-plugin-sdk/v2 #​667
  • Bump actions/setup-go from 3 to 4 #​664
  • Bump github.com/fastly/go-fastly/v7 from 7.4.0 to 7.5.0 #​665

v4.1.0

Compare Source

ENHANCEMENTS:

  • feat(fastly_service_compute): support new content attribute #​661

DOCUMENTATION:

  • docs(dictionary): add import note #​662

DEPENDENCIES:

  • Bump github.com/hashicorp/terraform-plugin-docs from 0.13.0 to 0.14.1 #​656
  • Bump golang.org/x/net from 0.0.0-20211112202133-69e39bad7dc2 to 0.8.0 #​655
  • Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.24.0 to 2.25 #​642
  • Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 #​647

v4.0.0

Compare Source

BREAKING:

Only one minor breaking interface change has been made: the removal of the auto_loadbalance attribute from the backend block, which is still supported for the fastly_service_vcl resource but was never actually supported under the fastly_service_compute resource.

  • fix(backend): remove auto_loadbalance from compute service #​657

BUG FIXES:

  • fix: add missing format attribute when updating #​659

ENHANCEMENTS:

  • Enable the declaration of the keepalive_time backend attribute #​658

v3.2.0

Compare Source

ENHANCEMENTS:

  • Allow certainly as a certificate authority #​648

BUG FIXES:

  • fix(product_enablement): improve error handling for user scenarios without self-enablement #​651

DOCUMENTATION:

v3.1.0

Compare Source

ENHANCEMENTS:

  • feat(http3): implementing the HTTP3 API #​640
  • feat(product_enablement): implement product enablement APIs #​641

v3.0.4

Compare Source

BUG FIXES:

  • fix: force refresh when service version is reverted outside of Terraform #​630

DEPENDENCIES:

  • Bump goreleaser/goreleaser-action from 3 to 4 #​626

v3.0.3

Compare Source

BUG FIXES:

  • Prevent SSL related fields from being sent empty to the Fastly API #​622

DOCUMENTATION:

  • docs: remove 'alpha' notice from custom health check http headers feature #​623

v3.0.2

Compare Source

BUG FIXES:

  • Fix logging endpoints to not send empty placement value #​620

v3.0.1

Compare Source

BUG FIXES:

  • Backends send empty string to API #​618

v3.0.0

Compare Source

The major v7 release of the go-fastly API client resulted in substantial changes to the internals of the Fastly Terraform provider, and so we felt it was safer to release a new major version.

Additionally, the long deprecated ssl_hostname backend attribute has now officially been removed from the provider (refer to the documentation for ssl_cert_hostname and ssl_sni_hostname).

There has also been many bug fixes as part of the integration with the latest go-fastly release.

BREAKING:

  • Bump go-fastly to new v7 major release #​614

ENHANCEMENTS:

  • feat: dependabot workflow automation for updating dependency #​604
  • Add google account name to all gcp logging endpoints #​603

BUG FIXES:

  • fix incorrect update reference #​599

DEPENDENCIES:

  • Bump actions/checkout from 2 to 3 #​605
  • Bump goreleaser/goreleaser-action from 2 to 3 #​606
  • Bump github.com/bflad/tfproviderlint from 0.27.1 to 0.28.1 #​611
  • Bump github.com/stretchr/testify from 1.7.0 to 1.8.1 #​610
  • Bump github.com/google/go-cmp from 0.5.6 to 0.5.9 #​608
  • Bump actions/setup-go from 2 to 3 #​607
  • Bump github.com/hashicorp/terraform-plugin-docs from 0.5.0 to 0.13.0 #​612
  • Bump actions/cache from 2 to 3 #​616

  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@govuk-ci govuk-ci force-pushed the renovate/fastly-5.x branch 3 times, most recently from ed131a5 to 66aef7f Compare April 10, 2024 13:01
@samsimpson1 samsimpson1 merged commit f85ecfe into main Apr 11, 2024
4 checks passed
@samsimpson1 samsimpson1 deleted the renovate/fastly-5.x branch April 11, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants