First, install the latest bash using brew:
brew install bash
Next, add the local bash installation to the list of available shells by adding /usr/local/bin/bash to /etc/shells
sudo sh -c 'echo /usr/local/bin/bash >> /etc/shells'
#!/bin/sh | |
yum update -y | |
yum install -y wget git | |
wget "http://www.haproxy.org/download/1.5/src/haproxy-1.5.6.tar.gz" | |
yum groupinstall -y 'Development Tools' | |
yum install -y openssl-devel | |
yum install -y rpmdevtools pcre-devel | |
rpmdev-setuptree | |
mv haproxy-1.5.6.tar.gz ~/rpmbuild/SOURCES/ |
First, install the latest bash using brew:
brew install bash
Next, add the local bash installation to the list of available shells by adding /usr/local/bin/bash to /etc/shells
sudo sh -c 'echo /usr/local/bin/bash >> /etc/shells'
A few things you need to make sure you have done:
In my use case I am using "serverless.com" - in serverless, it would look like this
import { SSM } from "aws-sdk"; | |
const getParameterWorker = async (name:string, decrypt:boolean) : Promise<string> => { | |
const ssm = new SSM(); | |
const result = await ssm | |
.getParameter({ Name: name, WithDecryption: decrypt }) | |
.promise(); | |
return result.Parameter.Value; | |
} |
Creates a serverless.com
project in TypeScript using keyboard input for the project name.
read "?Project Name: " PROJECT && PROJECT_NAME="$( echo -e "$PROJECT" | tr '.' '-' )" && serverless create --template aws-nodejs-typescript --path $PROJECT --name $PROJECT_NAME && cd $PROJECT && npm install