This commit is contained in:
Aleksandra Jonas 2023-01-29 23:41:42 +01:00
parent 7e93017a70
commit 62f067f2de
3 changed files with 7 additions and 5 deletions

View File

@ -7,7 +7,7 @@ from credentials import (
DEFAULT_VPC
)
PREFIX = 'sassy'
PREFIX = 'website'
if __name__ == '__main__':
ec2 = boto3.resource(

View File

@ -6,17 +6,19 @@
var data = new FormData()
data.append('file', document.getElementById("docpicker").files[0])
document.getElementById("result").innerHTML = "Fetching..."
resp = await fetch('http://54.205.141.226:80/invoice', {method: "POST", body: data})
resp = await fetch('http://35.174.213.220:80/invoice', {method: "POST", body: data})
document.getElementById("result").innerHTML = "Fetched..."
data = await resp.json()
var result = JSON.stringify(data)
document.getElementById("result").innerHTML = result
}
</script>
<title>Makaron</title>
<title>Chmurki chmurki</title>
</head>
<body>
<input type="file" id="docpicker" accept=".pdf" onchange="parse()" />
<p id="result"></p>
<img src="chmurki.jpg" alt="Me na chmurkach">
<img src="traingle.jpg" alt="If you were a triangle, you'd be acute one">
</body>
</html>

View File

@ -1,13 +1,13 @@
{
"Id": "MyPolicy",
"Version": "2023-01-22",
"Version": "2023-01-29",
"Statement": [
{
"Sid": "PublicReadForGetBucketObjects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::443930-bucket/*"
"Resource": "arn:aws:s3:::chmurkisaast/*"
}
]
}