Skip to content

Instantly share code, notes, and snippets.

@taylor224
Last active February 14, 2020 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylor224/6f64f4dd9496d82650692b1cbf2725a2 to your computer and use it in GitHub Desktop.
Save taylor224/6f64f4dd9496d82650692b1cbf2725a2 to your computer and use it in GitHub Desktop.
Amazon aws Bulk SG IP add script
var script = document.createElement('script');
script.onload = function() {
jQuery.noConflict();
if (callback) {
callback(jQuery);
}
};
script.src = "https://code.jquery.com/jquery-2.1.1.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
var iplist = ["13.210.202.182/32"];
jQuery.each(jQuery("input[name='source']"), function(i,v) { jQuery(v).val(iplist[i]) });
jQuery.each(jQuery("select[name='protocol']"), function (i,v) { jQuery(v).val('https'); });
jQuery.each(jQuery("input[name='portRange']"), function(i,v) { jQuery(v).val('443') });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment