Proxy files from AWS S3 using nginx

It would seem that the task of implementing the frontend for AWS on nginx sounds like a typical case for StackOverflow - after all, there can be no problems with proxying files from S3? In fact, it turned out that a ready-made solution is not so easy to find, and this article should correct this situation.
 
 
Proxy files from AWS S3 using nginx  
 

Why is this even necessary?


 
 
File access control by means of nginx is relevant for the concept of IaC (infrastructure as code). All changes related to access will be contributed only in configs that are in the project.
 
If you give files through your nginx, it becomes ...[/h]
+ 0 -

Placement of a web application on Amazon Web Services. Cheap. Is it possible?

 
Surely everyone has heard about Amazon Web Services (AWS). And some even looked at page Pricing . And noticed that the prices there are noticeably higher than on DigitalOcean, Linode, Hetzner Cloud, etc. Here's a table for comparing prices:
 
 
 
 
 
Type
 
RAM
 
CPUs
 
Disk
 
Traffic
 
Price
 
 
 
 
 
DigitalOcean
 
-
 
4 GB
 
2 vCPUs
 
80 GB
 
4 TB
 
$ 20
 
 
 
Linode
 
Linode 4GB
 
4 GB
 
2 vCPUs
 
80 GB
 
4 TB
 
$ 20
 
 
 
AWS
 
t2.medium
 
4 GB
 
2 vCPUs
 
-
 
-
 
$ 40
 
 
 
 
Amazon takes money for traffic, and the prices are also not low:
 
Placement of a web application on Amazon Web Services. Cheap. Is it possible?
 
So w...
+ 0 -

How the guys from Storyline returned from Silicon Valley to Minsk with $ 770 thousand to startup

In 201? Vasily Shinkorenko and Maxim Abramchuk created the service Storyline, where you can develop applications for voice assistant from Amazon without using programming. The guys participated in two accelerators in the Silicon Valley - Boost VC and Y Combinator. In the spring of 201? they received $ 77?000 of investment.
 
 
We are from fillpackart called them and asked everything - what under the hood of the service, what it was like to be a developer in a start-up, how they lived in the valley and how soon the voice assistants will change the world.
 
 
How the guys from Storyline returned from Silicon Valley to Minsk with $ 770 thousand to startup ...
+ 0 -

Avito. iOS. AMA

Hello! Today in our blog we are already conducting the traditional question and answer section Ask Me Anything. (Prior to this, AMA was by the backend and by the android development of ). We continue the good tradition. This time it's about developing under iOS in general and about the features of the Avito application in particular.
 
Avito. iOS. AMA
 
How does it work with the application of the most popular ad site in Russia? Ask us! We will respond to all the comments of the first level, which will appear here today, from 12 to 19 hours Moscow time. Under the cut I represent seven of my colleagues who will ...
+ 0 -

Another option for generating thumbnails for images using AWS Lambda & golang + nodejs + nginx

Hello dear users of Habra!
 
My name is Nikita, at the moment I'm working as a backend developer in a mobile application startup. Finally, I have a truly non-trivial and rather interesting task whose solution I want to share with you.
 
 
What actually will the conversation go on? In the mobile application being developed, there is work with images. How can you easily guess: where there are pictures, there are likely to appear previews. Another condition, almost the first common task that was set for me: to make it work and scale in the cloud on the Amazon. If there were a few lyrics: there was ...
+ 0 -

Effective use of spot-instances AWS

Effective use of spot-instances AWS
 
Spot-instances - is essentially the sale of free at the moment resources with an excellent discount. At the same time, the instance can be turned off and taken back at any time. In the article, I will talk about the features and practices of working with this proposal from AWS.
https://github.com/opszero/seespot ). In short, the daemon looks at both /spot /termination-time and, optionally, in the healthcheck url of your service. Once AWS is ready to remove the instance, it is marked as OutOfService in ELB and can optionally perform the final CleanUP task.
 
So, we figured out how to handle the shutdown ...
+ 0 -

Aws Lambda Go 1.x, Kinesis, CloudSearch

In previous I described how to create a simple lambda on Golang that takes an input from a simple object of two fields and sends the same simple object to the output. Now we will complicate the task a bit by connecting to the lambda as a Kinesis data source, and we will transfer the result of processing the Kinesis records to CloudSearch. No special logic in lambda will not be for simplicity: we simply accept requests from Kinesis, log them into CloudWatch, translate it and send it to CloudSearch.
 
 
Aws Lambda Go 1.x, Kinesis, CloudSearch
 
 
h...
+ 0 -

Amazon Lambda with Golang

Amazon Lambda with GolangIn mid-January this year, Amazon announced support Go in their lambdas.
 
Great news, but now I'm writing these lines without having any experience writing code on Golang, so that, passing through the hemp and bumps, in parallel with writing the article, come to your first working lambda on Go.
 
Go . My machine is Windows 10 on an Intel processor. There is nothing complicated: download, run. We check that Go has registered the path to <путь установки> bin into the PATH environment variable or start go through cli (cmd, for example) to check.
 
 
Create the project folder:
 
 
+ 0 -