def update_replica_number()

in functions/source/UpdateDnsRecord/handler.py [0:0]


def update_replica_number(instance_id, replica_number, transition):
  if transition == LAUNCHING_TRANSITION:
    response = ec2.create_tags(
      Resources=[ instance_id ],
      Tags=[ { 'Key': REPLICA_TAG_NAME, 'Value': replica_number } ]
    )