AMI-based product delivery on AWS Marketplace: verifying customer purchase on server-side

0

How can I verify if a user is running my paid image on EC2?

We have instance ID from IMDS which knows about billing products & we have a digital signature for that - but how can we verify the instance as actually-existing at the present time? I want to provide services to people who are actively using my products.

Is there some data which can be queried? Some notifications which are relevant?

rudolf
asked 13 days ago101 views
1 Answer
1

Verifying if a user is running your paid image on EC2 can be challenging due to AWS's emphasis on user privacy and security. However, there are a few approaches you can consider:

As you mentioned, the IMDS provides information about the instance, including billing products. You can use this information to verify if your paid image is running on the instance. You can query the instance metadata from within the instance using a tool like curl or programmatically using an SDK.

Integration with Your Service : You can require users to authenticate or register their instances with your service. Upon registration, you can record relevant information such as the instance ID and other metadata. This approach allows you to maintain a direct relationship with your users and verify the usage of your paid image.

Billing and Usage Reports https://docs.aws.amazon.com/cur/latest/userguide/what-is-cur.html : AWS provides detailed billing and usage reports that include information about EC2 instances, including instance IDs, usage hours, and associated costs. You can analyze these reports to identify instances running your paid image. However, this approach may not provide real-time information and may require additional processing to correlate instances with your paid image.

Integration with AWS CloudTrail https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-aws-service-specific-topics.html : AWS CloudTrail provides a record of API calls made in your AWS account. You can monitor CloudTrail logs for relevant API calls related to EC2 instances, such as RunInstances or StartInstances. By correlating these API calls with your paid image, you can identify instances launched using your image.

profile picture
EXPERT
answered 13 days ago
profile pictureAWS
EXPERT
iBehr
reviewed 13 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions