Incrementing the `aws-sdk-go-base` dependecy will also pull in the latest version of the AWS SDK for Go V2, which includes support for the newly launched `aws login` authentication method.
* Add component registry source resolution support to Terraform Stacks
This change implements the missing component source resolution case in the stack configuration loader, enabling Terraform Stacks to properly handle component registry sources from HCP Terraform and other component registries.
The implementation mirrors the existing module registry resolution workflow, where component sources are first resolved to their versioned form using the source bundle's component metadata, then converted to final source addresses that can be used to locate the actual component code. This completes the integration between the terraform-registry-address component parsing capabilities and the go-slug sourcebundle component resolution APIs.
* chore: bump go-slug to v0.18.1
* fix: add case for component final source type
* chore: rm space
* chore: sync module deps
* chore: update testdata with separate bundle
* fix: manifest file json obj with trailing comma
* Add changelog entry to 1.14
---------
Co-authored-by: Michael Yocca <michael.yocca@hashicorp.com>
* chore: Upgrade golang.org/x/crypto - `go get golang.org/x/crypto@v0.44.0`
* chore: Upgrade golang.org/x/crypto in submodules - `make syncdeps`
* chore: Run `make generate`
* chore: Ignore SA4003 linter error globally, as `golang.org/x/tools/cmd/stringer` generates code that breaks this rule when it's used with custom types that have unsigned integers or bytes as the underlying type.
* Fix panic hashing backend config when a builtin or reattached provider is used for PSS
* Add test showing a nil *version.Version is tolerated by the Hash method, refactor existing test
* Protect against provider version data missing when using an un-reattached, un-builtin provider. Add test coverage.
* Make reporting errors from reattach.IsProviderReattached more consistent
* Run `make syncdeps`
* Update tests to show when nil provider data is tolerated
* Update remote package's Client interface to use diagnostics instead of errors
* Update all implementations of Client interface to match changes, update calling code (incl. tests) to use diags.
* Fix S3 backend test affected by making the Workspaces method return errors via diagnostics
* Address diagnostics comparison issues in test by ensuring expected diagnostics are defined in the context of the config they're triggered by
* Fix failing test case `TestBackendConfig_EC2MetadataEndpoint/envvar_invalid_mode` by making `diagnosticBase` struct comparable
* Add compile-time checks that diagnostic types fulfil interfaces
* Stop diagnosticBase implementing ComparableDiagnostic, re-add S3-specific comparer code to s3 package
* Update tests to use the S3-specific comparer again
* Fix test case missed in refactoring
* Update the backend.Backend interface to use diagnostics as return value from StateMgr method
* Fix calls to `Fatalf`
* Update Backend interface to use diagnostics for `DeleteWorkspace` and `Workspaces` methods
* Update testing helpers in backend package
* Update pluggable package to match interface changes
* Update builtin terraform provider package to match interface changes
* Update code in Meta-related files in command package; update error check logic
* Update workspace commands; update error check logic
* Update Local backend package to match interface changes
* Update Cloud backend to match interface changes
* Update Remote backend to match interface changes
* Update cos remote-state backend to match interface changes
* Update inmem remote-state backend to match interface changes
* Update pg remote-state backend to match interface changes
* Update http remote-state backend to match interface changes
* Update consul remote-state backend to match interface changes
* Update oss remote-state backend to match interface changes
* Update kubernetes remote-state backend to match interface changes
* Update gcs remote-state backend to match interface changes
* Update s3 remote-state backend to match interface changes
* Update oci remote-state backend to match interface changes
* Update azure remote-state backend to match interface changes
* Allow warnings from Workspaces and DeleteWorkspace methods to be logged or returned to calling code
* Fix defect in inmem backend test
* Change how warnings from workspace-related methods are output to view/ui
* Add code to 'wrap' a provider implementation so that it can behave like a backend.Backend
* Add code for creating a state manager that will interact with a provider via grpc to interact with state
* Remove prototyping code
* Update old implementation of PrepareConfig on Pluggable to match new RPC names
* Implement Configure method on Pluggable
* Implement Workspaces and DeleteWorkspace methods on Pluggable
* Prevent construction of a pluggable with missing data, add godoc comment to NewPluggable
* Add godoc comment to ConfigSchema
* Refactor how we create a state manager for interacting with PSS
Now we reuse the remote.State struct and all the pre-existing logic there. We still wrap the provider interface to enable use of gRPC methods, but that's now done using the remote.Client interface.
* Rename file
* Move file into the remote package
* Rename file and package to `pluggable`
* Add test for the only method implemented fully on `grpcClient` : Delete
* Add tests for `NewPluggable`
* Add tests for (Pluggable).ConfigSchema method, make minor fixes
* Change mocks: hardcoded response or logic should return before default logic in method.
* Add tests for (Pluggable).PrepareConfig method
* Add tests for (Pluggable).Configure method
* Add tests for (Pluggable).Workspaces method
* Add tests for (Pluggable).DeleteWorkspace method
* Fix rebase
* Run `make syncdeps`
* Add headers
* Add missing comments
* No need to implement ClientForcePusher
* Apply feedback from review, make small tweaks to test failure messages
* Added Terraform backend implementation for OCI Object Storage
* Update website/docs/language/backend/oci.mdx
updated suggestion
Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>
* Update website/docs/language/backend/oci.mdx
Added suggestion
Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>
* Update website/docs/language/backend/oci.mdx
added suggestions
Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>
* Addressed feedback for variable prefix, documentation, prepareConfig
* removed additional logs
* Removed md5hash seperate file
* Fix doc
* go.mod
* Added mandatory Unit test for oci backend
* run go mod tidy and added test for TestBackendStateLocksInWS and TestBackendStateForceUnlockInWS
* moved changelog to v1.12.0
* Addressed feedback_April_16 removed global log, Added tests and codeowner
* mod file
* Update CODEOWNERS
Co-authored-by: Radek Simko <radeksimko@users.noreply.github.com>
* Addressed feedbach april 17th
* mock env var and unset region for InstancePrincipal
* syncdeps fix
* goimports fix
* Update internal/backend/remote-state/oci/backend_test.go
Co-authored-by: Radek Simko <radeksimko@users.noreply.github.com>
---------
Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>
Co-authored-by: Radek Simko <radeksimko@users.noreply.github.com>
* go get github.com/hashicorp/go-azure-helpers@v0.72.0
* .go-version to 1.24.1
* Run `./scripts/syncdeps.sh`
This propagates the Go version upgrade
* gcs : go get google.golang.org/api@v0.155.0
* gcs: go mod tidy
* Run `./scripts/syncdeps.sh`
* make generate && make protobuf