- EC2 instance from Amazon Linux 2 AMI
- Install Git
- Install Terraform
- Install pip & AWS CLI
- Install kubectl and shell autocompletion
- Install aws-iam-authenticator
- Read https://learn.hashicorp.com/terraform/aws/eks-intro
Taken from here https://aws.amazon.com/containers/new/
2019
January 21 Amazon EKS Achieves ISO and PCI Compliance
January 16 Amazon EKS Announces 99.9% Service Level Agreement
January 09 Amazon EKS Available in Seoul Region
2018
December 19 Amazon EKS Available in Frankfurt, Singapore, Sydney, and Tokyo AWS Regions
FROM redis:3.2.10 | |
MAINTAINER Li Yi <denverdino@gmail.com> | |
EXPOSE 26379 | |
ADD sentinel.conf /etc/redis/sentinel.conf | |
RUN chown redis:redis /etc/redis/sentinel.conf | |
ENV SENTINEL_QUORUM 2 | |
ENV SENTINEL_DOWN_AFTER 30000 | |
ENV SENTINEL_FAILOVER 180000 |
Goal: Create API Gateway that can only accessible from your VPC (not prom public).
You can follow this URL for setting up:
And look into this URL for sample resource policy:
If you get error something like this:
#!/bin/bash | |
# You must accept the Oracle Binary Code License | |
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html | |
# usage: get_jdk.sh <jdk_version> <ext> | |
# jdk_version: 8(default) or 9 | |
# ext: rpm or tar.gz | |
jdk_version=${1:-8} | |
ext=${2:-rpm} |
const http = require('http') | |
exports.handler = (event, context, callback) => { | |
var auth = 'Basic ' + Buffer.from('JenkinsUserId:JenkinsAPIToken').toString('base64'); | |
var options = { | |
host: 'example.com or ip address', | |
path: '/jenkins/job/MyJenkinsJobName/job/RepoName/job/master/build?delay=0sec', | |
port: '80', |
## https://aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/ | |
### 4GB Swap | |
sudo dd if=/dev/zero of=/swapfile bs=1G count=4 | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon -s | |
echo "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab |
docker inspect --format '{{.State.Pid}} {{printf "%.13s" .ID}} {{.Name}}' \ | |
$(docker ps --format '{{.ID}}') | while read dockpid dockid dockname | |
do | |
echo $dockid $name | |
sudo nsenter -t $dockpid -n netstat -pnl | |
done |
Follow the instruction here: https://docs.aws.amazon.com/lambda/latest/dg/getting-started-create-function.html