In 1986 independence was attained under a Compact of Free Association with the US , which was amended and renewed in 2004 .