def write_state_file(self):
fh = open('<STR_LIT>', '<STR_LIT:w>')<EOL>state = {}<EOL>state['<STR_LIT>'] = self.vpc_id<EOL>state['<STR_LIT>'] = self.sg_id<EOL>state['<STR_LIT>'] = self.sn_ids<EOL>state['<STR_LIT>'] = self.instances<EOL>state["<STR_LIT>"] = self.instance_states<EOL>fh.write(json.dumps(state, indent=<NUM_LIT:4>))<EOL>
Save information that must persist to a file.

        We do not want to create a new VPC and new identical security groups, so we save
        information about them in a file between runs.