Created
May 17, 2018 08:42
-
-
Save Aperyon/f230fec8c82e947e9de050da650857b9 to your computer and use it in GitHub Desktop.
AWS ECS task definition env vars setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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