-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: resource/aws_iot_provisioning_template: type JITP not works from version 5.57.0 #38629
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Relates #37152. I can reproduce this with a new acceptance test case: % make testacc TESTARGS='-run=TestAccIoTProvisioningTemplate_jitp' PKG=iot
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/iot/... -v -count 1 -parallel 20 -run=TestAccIoTProvisioningTemplate_jitp -timeout 360m
=== RUN TestAccIoTProvisioningTemplate_jitp
=== PAUSE TestAccIoTProvisioningTemplate_jitp
=== CONT TestAccIoTProvisioningTemplate_jitp
provisioning_template_test.go:186: Step 1/2 error: Check failed: Check 11/11 error: aws_iot_provisioning_template.test: Attribute 'type' expected "JITP", got "FLEET_PROVISIONING"
--- FAIL: TestAccIoTProvisioningTemplate_jitp (17.58s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/iot 22.820s
FAIL
make: *** [testacc] Error 1 |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.61.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
Terraform version: 1.5.7
AWS Provider Version
5.22.0, 5.56.1, 5.57.0, 5.60.0
Affected Resource(s)
aws_iot_provisioning_template
Expected Behavior
With the latest version of the aws provider, you should be able to create the iot provisioning template resource of type jitp.
Actual Behavior
when one wants to create an iot provisioning template of type JITP, one creates one of type FLEET_PROVISIONING, regardless of whether one explicitly states that one of JITP is desired.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
provider.tf:
main.tf
Steps to Reproduce
To be able to deploy the resource correctly:
Debug Output
2024-07-31T13:46:00.864-0400 [WARN] Provider "provider["registry.terraform.io/hashicorp/aws"]" produced an unexpected new value for aws_iot_provisioning_template.ts_iot_default_provisioning_template, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .type: was cty.StringVal("JITP"), but now cty.StringVal("FLEET_PROVISIONING")
aws_iot_provisioning_template.ts_iot_default_provisioning_template: Creation complete after 1s [id=troubleshooting_4-default-pb]
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: