-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/pinpointsmsvoicev2Issues and PRs that pertain to the pinpointsmsvoicev2 service.Issues and PRs that pertain to the pinpointsmsvoicev2 service.service/snsIssues and PRs that pertain to the sns service.Issues and PRs that pertain to the sns service.
Description
Terraform and AWS Provider Version
Terraform v1.12.1
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v5.100.0
+ provider registry.terraform.io/hashicorp/null v3.2.4
+ provider registry.terraform.io/hashicorp/tls v4.1.0
Affected Resource(s) or Data Source(s)
aws_pinpointsmsvoicev2_phone_number
Expected Behavior
The new phone number should be requested
Actual Behavior
Terraform fails when applying changes. It is waiting for the phone number status to become "ACTIVE", but it can take up to 10 DAYS. Can the logic be modified to create the resource successfully when the status is "PENDING"?
Relevant Error/Panic Output
Error: waiting for End User Messaging SMS Phone Number (phone-xxxxxxxxxxxx) create
│
│ with aws_pinpointsmsvoicev2_phone_number.appointment_reminder[0],
│ on end-user-messaging.tf line 2, in resource "aws_pinpointsmsvoicev2_phone_number" "appointment_reminder":
│ 2: resource "aws_pinpointsmsvoicev2_phone_number" "appointment_reminder" {
│
│ timeout while waiting for state to become 'ACTIVE' (last state: 'PENDING', timeout: 5m0s)
Sample Terraform Configuration
Click to expand configuration
resource "aws_sns_topic" "user_updates" {
name = "user-updates-topic"
}
resource "aws_pinpointsmsvoicev2_opt_out_list" "example" {
name = "example-opt-out-list"
}
resource "aws_pinpointsmsvoicev2_phone_number" "messaging_service" {
iso_country_code = "US"
message_type = "TRANSACTIONAL"
number_type = "TEN_DLC"
number_capabilities = [
"SMS",
"VOICE"
]
deletion_protection_enabled = true
opt_out_list_name = aws_pinpointsmsvoicev2_opt_out_list.example.name
registration_id = var.registration_id_appt_reminder
self_managed_opt_outs_enabled = true
two_way_channel_arn = data.aws_sns_topic.user_updates.arn
two_way_channel_enabled = true
}
Steps to Reproduce
- Apply the configuration
Debug Logging
Click to expand log output
GenAI / LLM Assisted Development
n/a
Important Facts and References
No response
Would you like to implement a fix?
No
IMKnysh, sagarshah1983, medhost-kommananmurthy, OlehKuryshko, medhost-prasanna and 3 more
Metadata
Metadata
Assignees
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/pinpointsmsvoicev2Issues and PRs that pertain to the pinpointsmsvoicev2 service.Issues and PRs that pertain to the pinpointsmsvoicev2 service.service/snsIssues and PRs that pertain to the sns service.Issues and PRs that pertain to the sns service.