In this recipe, we created a custom metric using the aws cloudwatch put-metric-data command and specified the value and dimension using their respective properties. We can also use the metric-data property, which accepts a list of up to 20 metrics per call. Refer to the link on put-metric-data in the See also section for more details.