You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugAddresses a defect in current functionality.providerPertains to the provider itself, rather than any interaction with AWS.testsPRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Resources created for acceptance tests should be cleaned up after they've run.
Actual Behavior
Resource are unable to be cleaned up and are thus left littered around.
Relevant Error/Panic Output Snippet
$ make testacc TESTS=TestAccIAMUserDataSource_basic PKG=iam <aws:personal><region:us-east-1>
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/iam/... -v -count 1 -parallel 20 -run='TestAccIAMUserDataSource_basic' -timeout 180m
=== RUN TestAccIAMUserDataSource_basic
=== PAUSE TestAccIAMUserDataSource_basic
=== CONT TestAccIAMUserDataSource_basic
testing_new.go:88: Error running post-test destroy, there may be dangling resources: exit status 1
Error: Invalid provider configuration
Provider "registry.terraform.io/hashicorp/aws" requires explicit
configuration. Add a provider block to the root module and configure the
provider's required arguments as described in the provider documentation. Error: configuring Terraform AWS Provider: loading configuration: unable to add custom RootCAs HTTPClient, has no WithTransportOptions, *http.Client with provider["registry.terraform.io/hashicorp/aws"], on <empty> line 0: (source code not available)--- FAIL: TestAccIAMUserDataSource_basic (19.11s)FAILFAIL github.com/hashicorp/terraform-provider-aws/internal/service/iam 23.939sFAILmake: *** [testacc] Error 1
Terraform Configuration Files
N/A
Steps to Reproduce
# or wherever your default bundle may live, it doesn't matter the failure is caused by the var being setexport AWS_CA_BUNDLE="/etc/ssl/cert.pem"# run any acceptance test
make testacc TESTS=TestAccIAMUserDataSource_basic PKG=iam
# observe error message
Debug Output
No response
Panic Output
Error: configuring Terraform AWS Provider: loading configuration: unable to add custom RootCAs HTTPClient, has no WithTransportOptions, *http.Client
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
justinretzolk
added
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
provider
Pertains to the provider itself, rather than any interaction with AWS.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Jun 1, 2023
bugAddresses a defect in current functionality.providerPertains to the provider itself, rather than any interaction with AWS.testsPRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Terraform Core Version
1.4.6
AWS Provider Version
main
Affected Resource(s)
All
Expected Behavior
Resources created for acceptance tests should be cleaned up after they've run.
Actual Behavior
Resource are unable to be cleaned up and are thus left littered around.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
N/A
Steps to Reproduce
Debug Output
No response
Panic Output
Error: configuring Terraform AWS Provider: loading configuration: unable to add custom RootCAs HTTPClient, has no WithTransportOptions, *http.Client
Important Factoids
No response
References
This was resolved elsewhere by switching to the http client from aws-sdk. hashicorp/aws-sdk-go-base#116
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: