QuestionQ24

Configuration Management and IaC

A company is developing a software solution that runs a particular parallel-processing mechanism. In certain specialized scenarios, the software can scale to tens of servers. The solution uses a proprietary, license-based library that requires one dedicated license to be installed on each server. The company owns 200 licenses and plans to run no more than 200 server nodes concurrently.

The company requests these features:

  • A way to automate license usage at scale.
  • Creation of a dashboard for future use to check which licenses are available at any time.

What is the MOST effective way to meet these requirements?

Explanation

Amazon SQS can act as a pool of license tokens: each available license is represented by a queue message, and a launching instance receives one token exclusively while the message is invisible to other consumers. A termination lifecycle hook provides time to return that token to the queue before the instance terminates. The number of available queue messages can be monitored in CloudWatch for an availability dashboard. CloudFormation mappings are static template mappings and are not a runtime license-allocation store.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!