The intent is to define terse. standard-supported names for GCP regions.
| Region | Location | GCP code | A1 | A2 | B | Launched |
|---|
There is an option -target for targetting the specific resources which you want to create with apply command or plan command.
Sometimes, we faced the situation, new resources should be created first and update/destroy should be created later.
In case of that, you can use the below commands.
echo "terraform apply $(terraform plan -no-color | grep '\+ ' | grep -v 'new resource required' | grep -v 'create' | sed 's/\+ /\-target\=/g' | sed 's/$/ \\/g')"
echo "terraform apply $(terraform plan -no-color | grep '\~ ' | grep -v 'update in-place' | sed 's/\~ /\-target\=/g' | sed 's/\ //g' | sed 's/$/ \\/g')"
gcloud compute instances create apiumbrella-poc \
--machine-type n1-standard-2 --zone asia-east1-a \
--boot-disk-size=200G \
--image-family ubuntu-1604-lts --image-project ubuntu-os-cloud \
--maintenance-policy TERMINATE --restart-on-failure \
--scopes=cloud-platform,datastore,storage-ro,service-management,service-control,trace,compute-rw,storage-full,https://www.googleapis.com/auth/cloudkms \
--metadata startup-script='#!/bin/bash
gcloud compute instances create kong-poc \
--machine-type n1-standard-2 --zone asia-east1-a \
--boot-disk-size=200G \
--image-family ubuntu-1604-lts --image-project ubuntu-os-cloud \
--maintenance-policy TERMINATE --restart-on-failure \
--scopes=cloud-platform,datastore,storage-ro,service-management,service-control,trace,compute-rw,storage-full,https://www.googleapis.com/auth/cloudkms \
--metadata startup-script='#!/bin/bash
Kubernetes package manager for managing a lot of yaml files
[ *bundle of yamls* -> chart ] <──────────────────────── management tool "helm"
└─> "tgz" file is created.
└─> upload "Chart repository" | monocular:Web UI for Helm Chart
| chartmuseum: Chart for S3,GCS and so on(Cloud storage)
| #!/usr/bin/env bash | |
| # lists all unused AWS security groups. | |
| # a group is considered unused if it's not attached to any network interface. | |
| # requires aws-cli and jq. | |
| # all groups | |
| aws ec2 describe-security-groups \ | |
| | jq --raw-output '.SecurityGroups[] | [.GroupName, .GroupId] | @tsv' \ | |
| | sort > /tmp/sg.all |
This is an auto generator the html for http://rpkim.net/music.html website page. Getting the playlist in my Youtube and generate the listing of music in my playlist.
jq should be installedhttpie should be installed| from ctypes import * | |
| from numpy import * | |
| import platform | |
| import inspect | |
| import time | |
| import os | |
| from pprint import pprint | |
| INTEROPLIB = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) + "/libinterop-api.so.1" | |
| if platform.system() == 'Windows': |