title: Code deploy with Packer
body: <p>I am creating an AWS AMI that is provisioned with Chef using Packer. At the creation of snapshots tags of the AWS AMI, I want it to be tagged with tags that assign it to be deployed with CodeDeploy:</p>
  
  <pre><code>        {
              "aws:autoscaling:groupName": "Env1"
          }
  </code></pre>
  
  <p>In my JSON configuration for Packer, I am using <code>snapshot_tags</code> to define these.</p>
  
  <p>The problem is that on creating the AMI, Packer fails with:</p>
  
  <pre><code>Build 'amazon-ebs' errored: Error adding tags to Resources ([]*string{(*string)(0xc420107170), (*string)(0xc420478758)}): InvalidParameterValue: Tag keys starting with 'aws:' are reserved for internal use
      status code: 400, request id: fef34822-b692-4225-a2eb-a1cfac33a924
  </code></pre>
  
  <p>Cannot I use CodeDeploy with Packer since I must use <code>aws</code> in the tag?</p>
  
  <p><strong>ANSWER</strong>:</p>
  
  <p>There is no need to use a tag for an AMI to deploy with CodeDeploy. My mistake.</p>