title: AWS CodeBuild nodejs image with aws cli v2 installed
body: <p>We are building our project and we have to use AWS CLI v2 to deploy our project.</p>
  <p>The runtime version that we use is this one:</p>
  <pre><code>phases:
    install:
      runtime-versions:
        nodejs: 12.x
  </code></pre>
  <p>Is there an official AWS CodeBuild nodejs image that we can use that has AWS CLI v2 installed or do we need to create our own. Is there an elegant way to upgrade to v2 for the above runtime?</p>
  <p>This seems that it works but it might not be very stable in the future:</p>
  <pre><code> # uninstall awscli version 1
   - pip3 uninstall -y awscli
   # install awscli version 2
   - curl &quot;https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip&quot; -o &quot;awscliv2.zip&quot;
   - unzip awscliv2.zip
   - ./aws/install
  </code></pre>