AWS Marketplace Automation
Share Marketplace subscriptions with your AWS Organization
ℹ️ - You cannot share a license which is already existing in the target account.
-
TagResource: Will trigger an update of one account only. Python will grab the specific changed parameter for Licence Management from the
requestParameters
of the presented CloudTrail event. -
ListReceivedGrants: After subscribing to a new product in AWS Marketplace a
ListReceivedGrants
from AWSMarketPlaceSession will be invoked - this event will trigger the automation to update all accounts to share / revoke access to the new product.
The following policy will take care that only the purchase department is able to subscribe to new Marketplace products (or unsubscribe old products).
�json { "Version": "2012-10-17", "Statement": [ { "Sid": "DenyMarketplace", "Effect": "Deny", "Action": [ "aws-marketplace:AcceptAgreementApprovalRequest", "aws-marketplace:RejectAgreementApprovalRequest", "aws-marketplace:Subscribe", "aws-marketplace:Unsubscribe" ], "Resource": [ "*" ], "Condition": { "StringNotLike": { "aws:PrincipalArn": "arn:aws:iam::*:role/{ResourcePrefix}-PurchaseTeamRole" } } } ] } �
License grants can be activated only when both the license administrator and the grant recipient have enabled the AWS Marketplace Service Linked Role
, or trusted access is enabled for AWS Marketplace in the management account of your organization.
-
Sign in to the AWS Management Console using your organization's management account.
-
Navigate to the License Manager console and choose Settings.
-
Click on Edit.
-
Choose Link AWS Organizations accounts.
For the deployment of this automation we created a taskfile - you can read up on this documentation on how to use it.
task deploy