- https://console.aws.amazon.com/iam/home?#/roles
- dig ns [host]
Last active
October 28, 2019 18:17
-
-
Save mariohercules/396b2d2f7abb00173ecde04e90216dcb to your computer and use it in GitHub Desktop.
AWS Setup
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
export CLUSTER=cluster | |
export BUCKET=routecloud.com.br | |
export REGION=us-east-1 | |
export ZONE=us-east-1a | |
aws s3api create-bucket --bucket $BUCKET | |
kops create cluster --name $BUCKET --zones $ZONE --state s3://$BUCKET --yes | |
kops create ig monitoring --role node --name $BUCKET --state s3://$BUCKET | |
kops create ig web --role node --name $BUCKET --state s3://$BUCKET | |
kops create ig db --role node --name $BUCKET --state s3://$BUCKET | |
kops create ig kubow --role node --name $BUCKET --state s3://$BUCKET | |
kops create ig nodes --role node --name $BUCKET --state s3://$BUCKET |
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
export CLUSTER=cluster | |
export BUCKET=routecloud.com.br | |
export REGION=us-east-1 | |
export ZONE=us-east-1a | |
kops delete ig monitoring --name $BUCKET --state s3://$BUCKET --yes | |
kops delete ig web --name $BUCKET --state s3://$BUCKET --yes | |
kops delete ig db --name $BUCKET --state s3://$BUCKET --yes | |
kops delete ig kubow --name $BUCKET --state s3://$BUCKET --yes | |
kops delete ig nodes --name $BUCKET --state s3://$BUCKET --yes | |
kops delete cluster $BUCKET --state=s3://$BUCKET --yes | |
aws s3api delete-bucket --bucket $BUCKET --yes | |
aws iam delete-service-linked-role --role-name "elasticloadbalancing.amazonaws.com" | |
aws route53 delete-hosted-zone $BUCKET | |
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
export CLUSTER=cluster | |
export BUCKET=routecloud.com.br | |
export ZONE=us-east-1a | |
export ID=$(uuidgen) | |
aws s3api create-bucket --bucket $BUCKET | |
aws s3api put-bucket-versioning --bucket $BUCKET --versioning-configuration Status=Enabled | |
aws route53 create-hosted-zone --name $BUCKET --caller-reference $ID | |
kops create cluster --name $BUCKET --zones $ZONE --state s3://$BUCKET --yes | |
aws iam create-service-linked-role --aws-service-name "elasticloadbalancing.amazonaws.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment