2020/07 時点での Serverless NEG のハンズオン資料です。

複数の記事に跨って作成しており、5番目の記事になります。


構成

この記事の内容は長いため複数の記事に跨って作成しています。

適宜、興味のある記事を参照して下さい。

事前準備

gcloud auth login -q
### New Setting
export _pj_id='Your GCP Project ID'
export _common='check-serverless-neg'
gcloud config set project ${_pj_id}
cd [Your WorkSpace]
git clone https://github.com/iganari/package-gcp.git
cd package-gcp/compute/networkendpointgroups/serverless

やること

リソースの削除

gcloud compute forwarding-rules delete ${_common}-https-content-rule --global

gcloud compute target-https-proxies delete ${_common}-https-proxy

gcloud compute ssl-certificates delete ${_common}-www-ssl-cert 

gcloud compute url-maps remove-path-matcher ${_common}-url-map --path-matcher-name=${_common}-path-matcher

gcloud compute url-maps delete ${_common}-url-map 

gcloud compute backend-services delete ${_common}-backend-service-run --global

gcloud compute backend-services delete ${_common}-backend-service-app --global

gcloud compute backend-services delete ${_common}-backend-service-func --global
gcloud beta compute network-endpoint-groups delete ${_common}-serverless-neg-run --region=asia-northeast1

gcloud beta compute network-endpoint-groups delete ${_common}-serverless-neg-app --region=asia-northeast1 

gcloud beta compute network-endpoint-groups delete ${_common}-serverless-neg-func --region=asia-northeast1 
gcloud compute addresses delete ${_common}-example-ip --global

まとめ

これでリソースの削除も完了です!!

お疲れさまでした :)

comments powered by Disqus