restructuring aws instance response