[Bug]: credentials required even if no resource are used #38039
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/route53
Issues and PRs that pertain to the route53 service.
Terraform Core Version
1.8.5
AWS Provider Version
5.54.1
Affected Resource(s)
General error with the provider.
If no aws resources are used, because user input vars only require resources from other clouds, aws provider still expects valid credentials.
Expected Behavior
If no aws resources are created the provider does not need any credentials. The provider does not need to be called at all.
Actual Behavior
The provider expects valid credentials and the terraform plan/apply fails even if no aws resorces are referenced or created.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
For the variable set this in the tfvars:
Steps to Reproduce
Init the root module and run terraform plan/apply.
The output shows that no aws resources will be created, still the aws provider needs credentials. This prevents dynamic setups where for example users can reference different DNS providers. It makes is hard to provide general purpose modules for using multible clouds for easy use.
Debug Output
Panic Output
No response
Important Factoids
Other providers do not seem to have a problem with this. If I want to create only aws dns records, I do not need to provide valid cloudflare credentials. But I'm not quiet sure if this problem is cause by the provider or TF istself.
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: