Skip to content

Instantly share code, notes, and snippets.

@Aperyon
Created May 17, 2018 08:42
Show Gist options
  • Save Aperyon/f230fec8c82e947e9de050da650857b9 to your computer and use it in GitHub Desktop.
Save Aperyon/f230fec8c82e947e9de050da650857b9 to your computer and use it in GitHub Desktop.
AWS ECS task definition env vars setup
elements = content.split('\n’).filter(r => r.trim() !== ‘').map(r => r.split('='));
for (var i=0; i<elements.length; i++) {
$('awsui-control-group[label="Env Variables"]').find('input').eq(i*2).val(elements[i][0]).trigger('input').trigger('change');
$('awsui-control-group[label="Env Variables"]').find('input').eq(i*2 + 1).val(elements[i][1]).trigger('input').trigger('change');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment