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
// Copy from lambda | |
let str="";document.getElementsByClassName("awsui-table-row").forEach(e=>{str+=e.innerText.split("\t").join("=")+";"}); | |
let dummy=document.createElement("textarea"); | |
document.body.appendChild(dummy),dummy.value=str,dummy.select(),document.execCommand("copy"),document.body.removeChild(dummy); | |
// Copy from EBS | |
let str="";document.querySelectorAll('.properties-table tbody tr').forEach(e=>{ | |
let row = e.querySelectorAll('td input'); | |
if(row && row.length===2 && row[0].value!=='' && row[1].value!==''){ | |
str+=row[0].value +"=" + row[1].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
import requests | |
import json | |
import base64 | |
import os | |
import mimetypes | |
#### defs #### | |
user = os.environ.get("WORDPRESS_API_USER", "") | |
pythonapp = os.environ.get("WORDPRESS_API_KEY", "") | |
url = os.environ.get("WORDPRESS_API_ENDPOINT", "") |