terraform/internal
Kristin Laemmert e3d2b7de8b
Some checks failed
build / Determine intended Terraform version (push) Has been cancelled
build / Determine Go toolchain version (push) Has been cancelled
Quick Checks / Unit Tests (push) Has been cancelled
Quick Checks / Race Tests (push) Has been cancelled
Quick Checks / End-to-end Tests (push) Has been cancelled
Quick Checks / Code Consistency Checks (push) Has been cancelled
build / Generate release metadata (push) Has been cancelled
build / Build for freebsd_386 (push) Has been cancelled
build / Build for linux_386 (push) Has been cancelled
build / Build for openbsd_386 (push) Has been cancelled
build / Build for windows_386 (push) Has been cancelled
build / Build for darwin_amd64 (push) Has been cancelled
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build for windows_arm64 (push) Has been cancelled
build / Build Docker image for linux_386 (push) Has been cancelled
build / Build Docker image for linux_amd64 (push) Has been cancelled
build / Build Docker image for linux_arm (push) Has been cancelled
build / Build Docker image for linux_arm64 (push) Has been cancelled
build / Build e2etest for linux_386 (push) Has been cancelled
build / Build e2etest for windows_386 (push) Has been cancelled
build / Build e2etest for darwin_amd64 (push) Has been cancelled
build / Build e2etest for linux_amd64 (push) Has been cancelled
build / Build e2etest for windows_amd64 (push) Has been cancelled
build / Build e2etest for linux_arm (push) Has been cancelled
build / Build e2etest for darwin_arm64 (push) Has been cancelled
build / Build e2etest for linux_arm64 (push) Has been cancelled
build / Run e2e test for linux_386 (push) Has been cancelled
build / Run e2e test for windows_386 (push) Has been cancelled
build / Run e2e test for darwin_amd64 (push) Has been cancelled
build / Run e2e test for linux_amd64 (push) Has been cancelled
build / Run e2e test for windows_amd64 (push) Has been cancelled
build / Run e2e test for linux_arm (push) Has been cancelled
build / Run e2e test for linux_arm64 (push) Has been cancelled
build / Run terraform-exec test for linux amd64 (push) Has been cancelled
fix(import): include provider local in generated resource cfg when set in import
By the time we get to the config generation during terraform plan, terraform didn't have access to the import config to see if a provider had been specified by localname. This is working fine for providers with aliases, and terraform was identifying the correct AbsProvider, but it was still missing from the generated configuration.

I've addressed this by adding a struct which carries both the evaluated import target (cty.Value) and the decoded import config, so that generateHCLResourceDef can now use the ProviderConfigRef (if set). I have also added a test to context_plan_import_test that verifies localname is honored.
2026-04-01 16:05:51 -04:00
..
actions make copyrightfix 2026-02-17 13:56:34 +00:00
addrs Merge pull request #38160 from hashicorp/jbardin/inline-type-conversion 2026-02-27 11:11:09 -04:00
backend Bump terraform-svchost to 0.2.1 (#38236) 2026-04-01 12:08:23 +02:00
builtin terraform_data sensitive and write-only tools 2026-03-19 20:48:12 -04:00
checks variable validation for const variables 2026-03-11 15:39:41 +01:00
cloud Allow commands to fetch backend variables 2026-03-17 16:41:28 +01:00
cloudplugin make protobuf 2026-02-17 13:56:34 +00:00
collections make copyrightfix 2026-02-17 13:56:34 +00:00
command Add regression test for apply with vars 2026-03-31 16:16:58 +02:00
communicator fix for bastion host key checking 2026-03-27 14:31:29 -04:00
configs fix(import): include provider local in generated resource cfg when set in import 2026-04-01 16:05:51 -04:00
copy make copyrightfix 2026-02-17 13:56:34 +00:00
dag make copyrightfix 2026-02-17 13:56:34 +00:00
deprecation change BlockByPath to NestedBlockByPath 2026-03-27 09:06:30 -04:00
depsfile make copyrightfix 2026-02-17 13:56:34 +00:00
didyoumean make copyrightfix 2026-02-17 13:56:34 +00:00
e2e test: Fix E2E tests to use correct errors for assertions, remove use of ioutil in package (#38254) 2026-03-10 13:34:18 +00:00
experiments make copyrightfix 2026-02-17 13:56:34 +00:00
genconfig change BlockByPath to NestedBlockByPath 2026-03-27 09:06:30 -04:00
getmodules make copyrightfix 2026-02-17 13:56:34 +00:00
getproviders update gpg with latest version from website (#38271) 2026-03-18 12:55:11 +00:00
grpcwrap thread ComputedBlocksAllowed through capabilities 2026-03-27 09:06:30 -04:00
helper/slowmessage make copyrightfix 2026-02-17 13:56:34 +00:00
httpclient make copyrightfix 2026-02-17 13:56:34 +00:00
initwd use common testing helper in configs 2026-03-06 11:59:59 +01:00
instances make copyrightfix 2026-02-17 13:56:34 +00:00
ipaddr make copyrightfix 2026-02-17 13:56:34 +00:00
lang detect non-legacy schemas 2026-03-27 09:06:30 -04:00
legacy Bump terraform-svchost to 0.2.1 (#38236) 2026-04-01 12:08:23 +02:00
logging make copyrightfix 2026-02-17 13:56:34 +00:00
modsdir make copyrightfix 2026-02-17 13:56:34 +00:00
moduledeps make copyrightfix 2026-02-17 13:56:34 +00:00
moduleref Fix modules command 2026-03-04 11:45:59 +01:00
moduletest thread ComputedBlocksAllowed through capabilities 2026-03-27 09:06:30 -04:00
namedvals make copyrightfix 2026-02-17 13:56:34 +00:00
plans PrepareComputedBlocks test 2026-03-27 09:06:30 -04:00
plugin read deprecation message for resource deprecations 2026-02-23 15:38:55 +01:00
plugin6 thread ComputedBlocksAllowed through capabilities 2026-03-27 09:06:30 -04:00
pluginshared make copyrightfix 2026-02-17 13:56:34 +00:00
promising make copyrightfix 2026-02-17 13:56:34 +00:00
provider-simple make copyrightfix 2026-02-17 13:56:34 +00:00
provider-simple-v6 make copyrightfix 2026-02-17 13:56:34 +00:00
provider-terraform/main make copyrightfix 2026-02-17 13:56:34 +00:00
providercache Rework most of the configuration loading 2026-03-04 11:45:59 +01:00
providers thread ComputedBlocksAllowed through capabilities 2026-03-27 09:06:30 -04:00
provisioner-local-exec/main make copyrightfix 2026-02-17 13:56:34 +00:00
provisioners make copyrightfix 2026-02-17 13:56:34 +00:00
refactoring move refactoring package to use graph config loading 2026-03-06 11:59:59 +01:00
registry make copyrightfix 2026-02-17 13:56:34 +00:00
releaseauth update gpg with latest version from website (#38271) 2026-03-18 12:55:11 +00:00
repl move initwd config loading into terraform 2026-03-06 11:59:59 +01:00
replacefile make copyrightfix 2026-02-17 13:56:34 +00:00
resources/ephemeral make copyrightfix 2026-02-17 13:56:34 +00:00
rpcapi update schemas where they are referenced in various tests 2026-03-19 20:48:12 -04:00
schemarepo make copyrightfix 2026-02-17 13:56:34 +00:00
stacks thread ComputedBlocksAllowed through capabilities 2026-03-27 09:06:30 -04:00
stacksplugin make protobuf 2026-02-17 13:56:34 +00:00
states states: fix RootOutputValuesEqual comparing s2 to itself (#38181) 2026-02-18 11:15:37 +00:00
terminal make copyrightfix 2026-02-17 13:56:34 +00:00
terraform fix(import): include provider local in generated resource cfg when set in import 2026-04-01 16:05:51 -04:00
tfdiags make copyrightfix 2026-02-17 13:56:34 +00:00
tfplugin5 read deprecation message for resource deprecations 2026-02-23 15:38:55 +01:00
tfplugin6 add computed_blocks_allowed 2026-03-27 09:06:30 -04:00