title: AWS Batch: How to check if requested fargate resources match what's provided
body: <p>I have a job definition in AWS Batch for a job to be run on <code>Fargate</code> Spot. The definition defines among other things the required <code>VCPU</code> and <code>MEMORY</code> values for the task.</p>
  <p>Here's an example how it looks like in cloudformation:</p>
  <pre class="lang-yaml prettyprint-override"><code>ResourceRequirements:
    -
      Type: VCPU
      Value: 2
    -
      Type: MEMORY
      Value: 4096
  </code></pre>
  <p>and in the console:</p>
  <p><a href="https://i.stack.imgur.com/1lw4l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1lw4l.png" alt="enter image description here" /></a></p>
  <p>So far so good. When I submit a task with this definition, a Fargate container gets spun up in ECS. But there's no indication as to what resources this container has.</p>
  <p>The relevant details in the running ECS task are empty/not-defined:</p>
  <p><a href="https://i.stack.imgur.com/Pobi8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pobi8.png" alt="enter image description here" /></a></p>
  <p>and the script I'm running gives an indication that there's more memory available than requested.</p>
  <p>So how can I (in the most easy way) confirm that the requested resources for this task is what's being provided?</p>
  <p>My concern is that once the processing scales up, over-provided resources would mean significant excess cost.</p>