This file contains hidden or 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
| ip=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) | |
| echo "Code Server" | |
| echo "http://$ip:8443" | |
| security_group=$(ec2-metadata -s | cut -d " " -f 2); | |
| aws ec2 authorize-security-group-ingress --group-name $security_group --protocol tcp --port 8443 --cidr 0.0.0.0/0 | |
| version="1.32.0-310" | |
| wget https://github.com/codercom/code-server/releases/download/$version/code-server-$version-linux-x64.tar.gz | |
| tar -xvzf code-server-$version-linux-x64.tar.gz | |
| cd code-server-$version-linux-x64 | |
| chmod +x code-server |
This file contains hidden or 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
| mkdir -p ~/.kube | |
| sudo curl --silent --location -o /usr/local/bin/kubectl "https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/kubectl" | |
| sudo chmod +x /usr/local/bin/kubectl | |
| go get -u -v github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator | |
| sudo mv ~/go/bin/aws-iam-authenticator /usr/local/bin/aws-iam-authenticator | |
| sudo yum -y install jq | |
| cd ~/environment | |
| git clone https://github.com/brentley/ecsdemo-frontend.git | |
| git clone https://github.com/brentley/ecsdemo-nodejs.git | |
| git clone https://github.com/brentley/ecsdemo-crystal.git |
This file contains hidden or 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 boto3 | |
| import os | |
| import boto3 | |
| from botocore.exceptions import ClientError | |
| from os import environ | |
| rekognition=boto3.client('rekognition') | |
| collectionId='IveFaceCollection' | |
| image_bucket="wecarebillstatic" | |
| prefix = "face/" |
NewerOlder