Service Catalog and Quotas

0

Hello, Is there any way to establish quotas in service catalog? I would need do some tricks with lambda function and events but would like to know if there is anything more pratical. I would like for example to limit how many provisioned products a user can have.

edipof
已提問 2 年前檢視次數 280 次
1 個回答
1

This pattern may provide some good ideas to implement something what you are looking for https://aws.amazon.com/blogs/mt/tracking-aws-service-catalog-products-provisioned-by-individual-saml-users/.

It has the following approach that can be extended for your case

  1. The user provisions a product after authenticating to AWS Service Catalog.
  2. AWS Service Catalog launches an AWS CloudFormation template in response to the user’s request.
  3. An AWS Lambda function is invoked based on the Amazon CloudWatch rule triggered by the CloudFormation CreateStack event.
  4. The Lambda function reads the User Name and CloudFormation stack ID from the event record and stores this information in an Amazon DynamoDB database.
  5. The CloudFormation template provisions a custom resource that invokes the AWS Lambda function.
  6. The Lambda function reads the user name from the Amazon DynamoDB record associated with the CloudFormation stack ID and returns this information back to the CloudFormation template.

You may need to add your own logic to this approach and do a POC to see if it works for your needs.

profile pictureAWS
專家
已回答 2 年前
profile pictureAWS
專家
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南