in resources/sc-autopilot-importer.py [0:0]
def accept_portfolio(event):
portfolio_id = event['requestParameters']['portfolioId']
sc_client = boto3.client('servicecatalog')
try:
#Accept portfolio shares
sc_client.accept_portfolio_share(PortfolioId=portfolio_id)
except botocore.exceptions.ClientError as e:
print(e)
sys.exit(1)