final
This commit is contained in:
parent
7e93017a70
commit
62f067f2de
2
main.py
2
main.py
@ -7,7 +7,7 @@ from credentials import (
|
|||||||
DEFAULT_VPC
|
DEFAULT_VPC
|
||||||
)
|
)
|
||||||
|
|
||||||
PREFIX = 'sassy'
|
PREFIX = 'website'
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
ec2 = boto3.resource(
|
ec2 = boto3.resource(
|
||||||
|
@ -6,17 +6,19 @@
|
|||||||
var data = new FormData()
|
var data = new FormData()
|
||||||
data.append('file', document.getElementById("docpicker").files[0])
|
data.append('file', document.getElementById("docpicker").files[0])
|
||||||
document.getElementById("result").innerHTML = "Fetching..."
|
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..."
|
document.getElementById("result").innerHTML = "Fetched..."
|
||||||
data = await resp.json()
|
data = await resp.json()
|
||||||
var result = JSON.stringify(data)
|
var result = JSON.stringify(data)
|
||||||
document.getElementById("result").innerHTML = result
|
document.getElementById("result").innerHTML = result
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<title>Makaron</title>
|
<title>Chmurki chmurki</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<input type="file" id="docpicker" accept=".pdf" onchange="parse()" />
|
<input type="file" id="docpicker" accept=".pdf" onchange="parse()" />
|
||||||
<p id="result"></p>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"Id": "MyPolicy",
|
"Id": "MyPolicy",
|
||||||
"Version": "2023-01-22",
|
"Version": "2023-01-29",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
"Sid": "PublicReadForGetBucketObjects",
|
"Sid": "PublicReadForGetBucketObjects",
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Principal": "*",
|
"Principal": "*",
|
||||||
"Action": "s3:GetObject",
|
"Action": "s3:GetObject",
|
||||||
"Resource": "arn:aws:s3:::443930-bucket/*"
|
"Resource": "arn:aws:s3:::chmurkisaast/*"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user