[Bug]: aws_sns_topic_subscription
import should fail if topic does not contain subscription with given subscription id
#31013
Labels
bug
Addresses a defect in current functionality.
service/sns
Issues and PRs that pertain to the sns service.
Terraform Core Version
1.2.8
AWS Provider Version
4.46.0
Affected Resource(s)
Expected Behavior
The provider should fail to import an
aws_sns_topic_subscription
if the topic does not have a subscription with the given ID.Actual Behavior
The provider imports an
aws_sns_topic_subscription
if both topic arn and subscription id exist, however they don't have to belong to each other currently to be imported successfully.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: