Skip to content
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]: AWS SNS platform app fails to create for windows #37564

Open
kreempuff opened this issue May 16, 2024 · 1 comment
Open

[Bug]: AWS SNS platform app fails to create for windows #37564

kreempuff opened this issue May 16, 2024 · 1 comment
Labels
bug Addresses a defect in current functionality. service/sns Issues and PRs that pertain to the sns service.

Comments

@kreempuff
Copy link

Terraform Core Version

1.8.3

AWS Provider Version

5.43.0

Affected Resource(s)

aws_sns_platform_application

Expected Behavior

It should create the platform app. I've verified in the AWS console and with the AWS cli that the values for PlatformPrincipal and PlatformCredential are correct. I can also import the Platform App into the terraform state. Terraform just can't create it

Actual Behavior

It fails to create the platform app in SNS

Relevant Error/Panic Output Snippet

module.common.aws_sns_platform_application.main: Creating...
╷
│ Error: creating SNS Platform Application (qa-starligh): operation error SNS: CreatePlatformApplication, https response error StatusCode: 400, RequestID: 8573be34-c8b5-5f78-92c7-e0f4fd93b3aa, InvalidParameter: Invalid parameter: Attributes Reason: Platform credentials are invalid
│
│   with module.common.aws_sns_platform_application.main,
│   on ../../../common/sns.tf line 1, in resource "aws_sns_platform_application" "main":
│    1: resource "aws_sns_platform_application" "main" {
│
╵

Terraform Configuration Files

To fully reproduce you need an app in the MS partner center that has notifications approved.

resource "aws_sns_platform_application" "main" {
  name                = "${var.environment}-${var.app_name}"
  platform            = "WNS"
  # The Package Security Identifier (SID) for Windows
  platform_principal = "ms-app://<SID>"
  platform_credential = var.application_credential
  success_feedback_sample_rate = "100"
}

Steps to Reproduce

Run terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

Would you like to implement a fix?

None

@kreempuff kreempuff added the bug Addresses a defect in current functionality. label May 16, 2024
@github-actions github-actions bot added the service/sns Issues and PRs that pertain to the sns service. label May 16, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label May 16, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/sns Issues and PRs that pertain to the sns service.
Projects
None yet
Development

No branches or pull requests

2 participants