sudo yum update
sudo yum install docker
wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)
sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
sudo chmod -v +x /usr/local/bin/docker-compose
sudo systemctl enable docker.service
sudo systemctl start docker.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /Library/Developer/CommandLineTools | |
xcode-select --install |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
A few things you need to make sure you have done:
- Need to make sure the user creating the presigned key has the ability to call PutObject on the target bucket
- Need to make sure the bucket as the correct CORS on it
In my use case I am using "serverless.com" - in serverless, it would look like this
NewerOlder