We had already deployed these certificates, but received an email that they will expire in 30 days, so we created new certificate via Apple Developer and uploaded new files (pem and key) into the existing s3 bucket and replaced the existing files.
Terraform plan shown that the aws_sns_platform_application would change, but upon the apply the error happened after 50 minutes.
Debug Output
No response
Panic Output
No response
Important Factoids
We also use Pinpoint APNS channel resource and use the same certificates during the deployment:
And the Pinpoint APNS resource applied successfully:
module.pinpoint.aws_pinpoint_apns_channel.pinpoint_apns_channel[0]: Modifying... [id=DF_ID]
module.pinpoint.aws_pinpoint_apns_channel.pinpoint_apns_channel[0]: Modifications complete after 1s [id=DF_ID]
Also after this failure we run the plan/apply the second time and the plan didn't show that SNS application has changed and apply has finished successfully.
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.
Terraform Core Version
1.3.3
AWS Provider Version
4.40.0
Affected Resource(s)
Expected Behavior
When platform_credential and platform_principal updated using certificate-based authentication then the changes are deployed without issue.
Actual Behavior
The deployment fails after the long time:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Variables declarations:
Variables definitions:
Code:
Steps to Reproduce
We had already deployed these certificates, but received an email that they will expire in 30 days, so we created new certificate via Apple Developer and uploaded new files (pem and key) into the existing s3 bucket and replaced the existing files. Terraform plan shown that the aws_sns_platform_application would change, but upon the apply the error happened after 50 minutes.
Debug Output
No response
Panic Output
No response
Important Factoids
We also use Pinpoint APNS channel resource and use the same certificates during the deployment:
And the Pinpoint APNS resource applied successfully:
Also after this failure we run the plan/apply the second time and the plan didn't show that SNS application has changed and apply has finished successfully.
References
No response
Would you like to implement a fix?
None