[Bug]: aws_sns_platform_application cannot specify p12 certificate #40803
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/sns
Issues and PRs that pertain to the sns service.
Terraform Core Version
OpenTofu v1.8.7
AWS Provider Version
v5.81.0
Affected Resource(s)
The
platform_principal
needs to be the contents of ap12
file for APNS. Since that is a binary file and terraform expects all strings to be utf-8 (see e.g. https://developer.hashicorp.com/terraform/language/functions/base64decode), we have a bit of a problem.I guess one option would be to add a mutually exclusive
platform_principal_base64
that would eat bas64 encoded data instead.Expected Behavior
Should apply correctly.
Actual Behavior
│ Call to function "base64decode" failed: the result of decoding the provided string is not valid UTF-8.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
tofu apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
I might be able to implement the suggested fix
The text was updated successfully, but these errors were encountered: