Open Just-ZJ opened 11 months ago
Voting for Prioritization
Volunteering to Work on This Issue
I'd like to take this on. Creating a new data source is new to me so if I am unable to do so for whatever reason I will make another comment.
This is mostly done just need to add tests. I modified it so it lists account status of all shares rather than just accepted.
Description
Terraform currently lacks a data source which lists all imported portfolios for which account-to-account shares were accepted by an account. There is an equivalent in Python SDK and CloudFormation but is currently not supported by Terraform AWS Provider.
Python SDK: https://boto3.amazonaws.com/v1/documentation/api/1.26.87/reference/services/servicecatalog/client/list_accepted_portfolio_shares.html
AWS CloudFormation: https://docs.aws.amazon.com/servicecatalog/latest/dg/API_ListAcceptedPortfolioShares.html
Requested Resource(s) and/or Data Source(s)
aws_servicecatalog_list_accepted_portfolio_shares
Potential Terraform Configuration
References
https://boto3.amazonaws.com/v1/documentation/api/1.26.87/reference/services/servicecatalog/client/list_accepted_portfolio_shares.html https://docs.aws.amazon.com/servicecatalog/latest/dg/API_ListAcceptedPortfolioShares.html
Would you like to implement a fix?
None