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

Support for creating sub-accounts? #99

Open
bberzinskas-tw opened this issue Mar 17, 2022 · 5 comments
Open

Support for creating sub-accounts? #99

bberzinskas-tw opened this issue Mar 17, 2022 · 5 comments
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@bberzinskas-tw
Copy link

Issue Summary

I would like the ability to create sub-accounts under my master account, allocate them API keys + MessagingService and pass that and the SIDs back into my TF state.

@childish-sambino
Copy link
Contributor

Looks like creating subaccounts is not supported by the provider because there's no API to delete a subaccount, which is a prereq to support. Code where we filter out resources that don't support create/read/delete: https://github.com/twilio/twilio-oai-generator/blob/80de0e3b7a7c92f951917b24ef4ef13cc6fcea4e/src/main/java/com/twilio/oai/TwilioTerraformGenerator.java#L237

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

@childish-sambino childish-sambino added status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap labels Mar 30, 2022
@bberzinskas-tw
Copy link
Author

is that not loosely equivalent to suspend / close subaccount endpoints?

@childish-sambino
Copy link
Contributor

Yes, it's loosely equivalent, but it would need to be added as an exceptional case because there's no explicit DELETE operation as there are with other resources.

@enchorb
Copy link

enchorb commented Jun 8, 2022

Really would love for this to be added, only thing holding us back from using this in production. 'Close' seems to be the best option since closed subaccounts will be automatically deleted after 30 days anyways.

This other Twilio provider seems to be working just fine with subaccounts https://registry.terraform.io/providers/RJPearson94/twilio/latest/docs/resources/account_sub_account

@Stono
Copy link

Stono commented Apr 24, 2023

+1 for this. I'm trying to ensure subaccounts are created consistently across our environments, as code.

I've been fighting terraform every step of the way with this goal (initially i wanted to create accounts in the organisation consistently too but there isn't even an API for that), and was really surprised when i saw we can't manage sub accounts either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

4 participants