Created
November 20, 2020 09:51
-
-
Save WeeJeWel/b18e4d21f9fc95120b550b3c1f9b65de to your computer and use it in GitHub Desktop.
Copy & Paste Elastic Beanstalk Environment Variables
This file contains 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
javascript:navigator.clipboard.writeText(encodeURIComponent(JSON.stringify(angular.element(document.querySelector('.properties-table')).scope().environmentVariables.collection.reduce((obj, item) => ({ ...obj, [item.optionName]: item.value, }), {})))) |
This file contains 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
javascript:navigator.clipboard.readText().then(vars => {$env = angular.element(document.querySelector('.properties-table')).scope(); $env.environmentVariables.getKeys().forEach(() => $env.environmentVariables.removeByIndex(0)); $env.$apply(); Object.entries(JSON.parse(decodeURIComponent(vars))).map(([ key, value ]) => $env.environmentVariables.add(key, value)); $env.$apply()}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment