Skip to content

Instantly share code, notes, and snippets.

View felipecosta09's full-sized avatar
:octocat:
Focusing

Felipe Costa felipecosta09

:octocat:
Focusing
View GitHub Profile
@felipecosta09
felipecosta09 / awsazcheck.sh
Last active April 10, 2020 11:35
Check AZs us-east-1
# Check AZ's in us-east-1
aws ec2 describe-availability-zones --region us-east-1
{
"AvailabilityZones": [
{
"OptInStatus": "opt-in-not-required",
"Messages": [],
"ZoneId": "use1-az6",
"GroupName": "us-east-1",
@felipecosta09
felipecosta09 / s3bucket.sh
Last active April 11, 2020 07:38
S3 Bucket Creation
#Create Bucket
aws s3api create-bucket --bucket prefix-example-com-state-store --region us-east-1
#Enable Versioning
aws s3api put-bucket-versioning --bucket prefix-example-com-state-store --versioning-configuration Status=Enabled
#Enable Bucket Encryption
@felipecosta09
felipecosta09 / kubectl.sh
Last active April 11, 2020 06:47
Install Kubectl
# Install Kubectl
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl