Open Telegram and search for @BotFather user and message them the following:
You
/newbot
BotFather
| cat > /etc/ssh/sshd_config << "EOF" | |
| Include /etc/ssh/sshd_config.d/*.conf | |
| #Port 22 | |
| #AddressFamily any | |
| #ListenAddress 0.0.0.0 | |
| #ListenAddress :: | |
| ... | |
| EOF |
| #!/bin/bash | |
| set -e | |
| # Sets up an new myql instalation (Ubuntu 20.04)s | |
| # 1. Downloads mysql-server if necessary | |
| # 2. Secures the installation | |
| # 3. Sets the root password | |
| # 4. Creates an app related DB |
| 'use strict'; | |
| /** | |
| * @callback BeforeShutdownListener | |
| * @param {string} [signalOrEvent] The exit signal or event name received on the process. | |
| */ | |
| /** | |
| * System signals the app will listen to initiate shutdown. | |
| * @const {string[]} |
/newbotGrafana Bota_new_grafana_bot/start. Thus you start chatting with the bot and this room is assigned chat id. (Thanks to @KES777)| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: My Network Environment | |
| Resources: | |
| # VPC containing 3 subnets, 1 is public, while the other 2 are private for RDS | |
| MyVPC: | |
| Type: AWS::EC2::VPC | |
| Properties: | |
| CidrBlock: 10.0.0.0/16 | |
| EnableDnsSupport: 'true' | |
| EnableDnsHostnames: 'true' |
| version: '2.1' | |
| networks: | |
| monitor-net: | |
| driver: bridge | |
| volumes: | |
| prometheus_data: {} | |
| grafana_data: {} |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.
Hi there! Since this post was originally written, nvm has gained some new tools, and some people have suggested alternative (and potentially better) approaches for modern systems. Make sure to have a look at the comments to this article, before following this guide!
Trickier than it seems.