% A Guide to Rust Syntax
A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.
The assert!
macro ends the program if the condition passed to it is not true:
fn main() {
#!/bin/sh | |
# NOTE: | |
# Make sure that the value of Name, Type, TTL are the same with your DNS Record Set | |
HOSTED_ZONE_ID=<YOUR_HOSTED_ZONE_ID> | |
RESOURCE_VALUE=<YOUR_DNS_RESOURCE_VALUE-ex:IP or dns> | |
DNS_NAME=<YOUR_DNS_NAME-ex: subdomain.domain.com> | |
RECORD_TYPE=<DNS_RECORD_TYPE-ex: A, CNAME> | |
TTL=<TTL_VALUE> |
fernando@fernando-Vostro-5470:~$ curl start.spring.io | |
. ____ _ __ _ _ | |
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ | |
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ | |
\\/ ___)| |_)| | | | | || (_| | ) ) ) ) | |
' |____| .__|_| |_|_| |_\__, | / / / / | |
=========|_|==============|___/=/_/_/_/ | |
:: Spring Initializr :: https://start.spring.io |
var AWS = require('aws-sdk'); | |
AWS.config.update({ region: 'your-region-ie:eu-central-1' }); | |
var mysql = require('mysql'); | |
// Better to use environment variables, but for the example we'll leave it like this | |
var dbClusterIdentifier = 'your-cluster'; | |
var clusterEndpoint = 'your-cluster.cluster-identifier.your-region.rds.amazonaws.com'; | |
var user = 'username'; | |
var password = 'password'; |