hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.6k stars 8.99k forks source link

Add new AWS Pinpoint resource aws_pinpoint_phone_number #24855

Open JamesMarino opened 2 years ago

JamesMarino commented 2 years ago

Community Note

Description

Currently the Amazon Pinpoint resources are lacking and mostly just contain functions from the base Pinpoint API. My plan is to add functionality from the recently added Pinpoint SMS Voice V2 API which will allow the creation of phone numbers in Amazon Pinpoint.

A new provider will need to be added - github.com/aws/aws-sdk-go/service/pinpointsmsvoicev2 as this is currently not in the providers generated files. The aws_pinpoint_phone_number resource will currently be the only resource for this specific provider so far.

Note: I've currently made a start on this feature request and should have a PR up soon with the changes.

New or Affected Resource(s)

Potential Terraform Configuration

resource "aws_pinpoint_phone_number" "test" {
  iso_country_code = "US"
  message_type     = "TRANSACTIONAL"
  number_type      = "TOLL_FREE"

  number_capabilities = [
    "SMS"
  ]
}

Note: More parameters will need to be added to the resource as per the API documentation below.

References

crosbymichael1 commented 1 year ago

Any update on this @JamesMarino ? This functionality will be helpful.

JamesMarino commented 1 year ago

Any update on this @JamesMarino ? This functionality will be helpful.

Hey @crosbymichael1 I have a PR ready to go here - https://github.com/hashicorp/terraform-provider-aws/pull/25036 - just waiting on approval by the Hashicorp team. Giving the PR a ๐Ÿ‘๐Ÿผ should move it up the queue in terms of priority. Thanks!