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

r/aws_connect_phone_number #26364

Merged
merged 22 commits into from
Nov 3, 2022

Conversation

GlennChia
Copy link
Collaborator

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #26015

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccConnect_serial/PhoneNumber' PKG=connect
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/connect/... -v -count 1 -parallel 20  -run=TestAccConnect_serial/PhoneNumber -timeout 180m
=== RUN   TestAccConnect_serial
=== RUN   TestAccConnect_serial/PhoneNumber
=== RUN   TestAccConnect_serial/PhoneNumber/prefix
=== RUN   TestAccConnect_serial/PhoneNumber/targetARN
=== RUN   TestAccConnect_serial/PhoneNumber/basic
=== RUN   TestAccConnect_serial/PhoneNumber/disappears
=== RUN   TestAccConnect_serial/PhoneNumber/tags
=== RUN   TestAccConnect_serial/PhoneNumber/description
--- PASS: TestAccConnect_serial (616.97s)
    --- PASS: TestAccConnect_serial/PhoneNumber (616.97s)
        --- PASS: TestAccConnect_serial/PhoneNumber/prefix (97.80s)
        --- PASS: TestAccConnect_serial/PhoneNumber/targetARN (116.53s)
        --- PASS: TestAccConnect_serial/PhoneNumber/basic (94.70s)
        --- PASS: TestAccConnect_serial/PhoneNumber/disappears (90.76s)
        --- PASS: TestAccConnect_serial/PhoneNumber/tags (122.56s)
        --- PASS: TestAccConnect_serial/PhoneNumber/description (94.62s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/connect    617.031s

...

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/connect Issues and PRs that pertain to the connect service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XL Managed by automation to categorize the size of a PR. labels Aug 18, 2022
Copy link
Contributor

@schuylr schuylr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I think this is a great first pass, but there are some levels of control that are being restricted from the Terraform operator.

I believe the core thing to allow would be the option to provide a full phone_number per the ClaimPhoneNumber API.

More than happy to contribute to this with access provided to your branch.

internal/service/connect/validate.go Show resolved Hide resolved
Copy link
Contributor

@schuylr schuylr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline with @GlennChia about proceeding with this functionality for now. Will create another fast-follow issue to allow support for direct phone_number supplying.

Will also need to create two data sources which also depend on this PR. Will link issues as pending from this PR as well!

Thanks for the awesome discussion!

Copy link
Contributor

@schuylr schuylr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick linter fix suggestion

internal/service/connect/phone_number.go Outdated Show resolved Hide resolved
GlennChia and others added 2 commits October 22, 2022 08:13
Co-authored-by: Schuyler Jager <s.jager@gmail.com>
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccConnect_serial/PhoneNumber' PKG=connect
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/connect/... -v -count 1 -parallel 20  -run=TestAccConnect_serial/PhoneNumber -timeout 180m
=== RUN   TestAccConnect_serial
=== RUN   TestAccConnect_serial/PhoneNumber
=== RUN   TestAccConnect_serial/PhoneNumber/tags
=== RUN   TestAccConnect_serial/PhoneNumber/description
=== RUN   TestAccConnect_serial/PhoneNumber/prefix
=== RUN   TestAccConnect_serial/PhoneNumber/targetARN
=== RUN   TestAccConnect_serial/PhoneNumber/basic
=== RUN   TestAccConnect_serial/PhoneNumber/disappears
--- PASS: TestAccConnect_serial (744.97s)
    --- PASS: TestAccConnect_serial/PhoneNumber (744.97s)
        --- PASS: TestAccConnect_serial/PhoneNumber/tags (238.51s)
        --- PASS: TestAccConnect_serial/PhoneNumber/description (101.66s)
        --- PASS: TestAccConnect_serial/PhoneNumber/prefix (101.36s)
        --- PASS: TestAccConnect_serial/PhoneNumber/targetARN (124.27s)
        --- PASS: TestAccConnect_serial/PhoneNumber/basic (91.41s)
        --- PASS: TestAccConnect_serial/PhoneNumber/disappears (87.76s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/connect	749.183s

@ewbankkit ewbankkit added the new-resource Introduces a new resource. label Nov 3, 2022
@ewbankkit
Copy link
Contributor

@GlennChia Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 51414ee into hashicorp:main Nov 3, 2022
@github-actions github-actions bot added this to the v4.38.0 milestone Nov 3, 2022
@github-actions
Copy link

github-actions bot commented Nov 3, 2022

This functionality has been released in v4.38.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Dec 4, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2022
@justinretzolk justinretzolk added the partner Contribution from a partner. label May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. partner Contribution from a partner. provider Pertains to the provider itself, rather than any interaction with AWS. service/connect Issues and PRs that pertain to the connect service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants