I hereby claim:
- I am irokhes on github.
- I am irokhes (https://keybase.io/irokhes) on keybase.
- I have a public key ASBHaDy-KwFQKwCflwjjTGtWc3UILOA1tYle6ceySK755Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Get a local Shell of container | |
| docker run -i -t --entrypoint /bin/bash imageID | |
| # Create image using this directory's Dockerfile | |
| docker build -t friendlyname . | |
| # Run "friendlyname" mapping port 4000 to 80 | |
| docker run -p 4000:80 friendlyname | |
| # Same thing, but in detached mode | |
| docker run -d -p 4000:80 friendlyname | |
| # See a list of all running containers | |
| docker ps |
When it comes to databases and AWS VPC, best practice is to place your database in private subnet. By definition, private subnet in AWS is not reachable from the Internet because no Internet gateway is attached to private subnet. This is the way you protect your data. This kind of configuration is good for security but bad for data management.
How can you easily access and manage your secured data?
There are two basic ways to acees it.
| You should convert it to public with some @channelName | |
| Send message to this channel through Bot API | |
| https://api.telegram.org/bot111:222/sendMessage?chat_id=@channelName&text=123 | |
| bot+[yoour bot id] | |
| As response you will get info with chat_id of your channel. |
| # This script will explain how to transfer a file to EC2 using SSM ONLY! | |
| # You will need to have permission to run SSM commands on the target machine and have sudo access as well | |
| # Infos | |
| INSTANCE_ID=i-1234567890 | |
| FILE_NAME=the_file.tar.gz | |
| # Step 1: Run command on machine to install netcat and dump from port to filename | |
| # < Start session |