Submit Search
Cloudfront cli tips
0 likes
278 views
K
kota tomimatsu
aws cloudfront tips of update with cli
Software
Related topics:
Climate Change Insights
Read more
1 of 9
Download now
Download to read offline
1
2
3
4
5
6
7
8
9
More Related Content
PDF
Cloudnative online-2021-stepfunction
kota tomimatsu
PDF
AWS Client VPN
kota tomimatsu
PDF
ElasticCloud
kota tomimatsu
PDF
jaws aws-nuke
kota tomimatsu
PDF
Aws organization multi_accounts
kota tomimatsu
PDF
aws kms poiints
kota tomimatsu
PDF
aws-Organizations-aroud
kota tomimatsu
PDF
jaws securityhub
kota tomimatsu
Cloudnative online-2021-stepfunction
kota tomimatsu
AWS Client VPN
kota tomimatsu
ElasticCloud
kota tomimatsu
jaws aws-nuke
kota tomimatsu
Aws organization multi_accounts
kota tomimatsu
aws kms poiints
kota tomimatsu
aws-Organizations-aroud
kota tomimatsu
jaws securityhub
kota tomimatsu
What's hot
(20)
PDF
[AKIBA.AWS] VPCをネットワーク図で理解してみる
Shuji Kikuchi
PDF
Serverless ArchitectureにおけるNoSQL Services 〜DynamoDBも良いけどSimpleDBも忘れないであげてください!!〜
Terui Masashi
PPTX
Aws certificate managerを使ってみたよ
Masato Kataoka
PDF
VPC Reachability Analyzer 使って人生が変わった話
Noritaka Sekiyama
PPTX
Amazon EKS への道 ~入門編~
Hideaki Aoyagi
PPTX
アウトプットはスキルアップもするしトクもする
Mitsuhiro Yamashita
PPTX
AWS認定クラウドプラクティショナー 書くときに意識してたこととか
Mitsuhiro Yamashita
PDF
re:Growth 2021 コンピュートサービスの進化を語る
Shuji Kikuchi
PPTX
AWS Premier Night #2 in Osaka『Amazon Elasticsearch Serviceのおもしろい使い方』
Takayoshi Kobayashi
PPTX
re:growth2019_transitgateway
jukiyashimakawashima
PDF
What's new with Serverless
Keisuke Nishitani
PDF
20200623 Client VPNの使いどころ
Masaru Ogura
PDF
OpsJAWS 20160128
hideaki yanase
PDF
四国クラウドお遍路20141004
Genta Watanabe
PDF
AWSカルタで楽しくAWSサービスを覚えよう
真吾 吉田
PPTX
20150901 ops jaws_araya_v2
Mitsuru Araya
PPTX
re:Invent 2021のS3アップデート紹介 & Glacier Instant Retrieval試してみた
Hideaki Aoyagi
PPTX
Raspberry Piを利用した顔の表情分析と感情を認識するシステム構築
Hyunmin Kim
PDF
JAWSUG札幌-社内環境見える化計画
Serverworks Co.,Ltd.
PDF
Ops jaws meetup#3
Tomoaki Sakatoku
[AKIBA.AWS] VPCをネットワーク図で理解してみる
Shuji Kikuchi
Serverless ArchitectureにおけるNoSQL Services 〜DynamoDBも良いけどSimpleDBも忘れないであげてください!!〜
Terui Masashi
Aws certificate managerを使ってみたよ
Masato Kataoka
VPC Reachability Analyzer 使って人生が変わった話
Noritaka Sekiyama
Amazon EKS への道 ~入門編~
Hideaki Aoyagi
アウトプットはスキルアップもするしトクもする
Mitsuhiro Yamashita
AWS認定クラウドプラクティショナー 書くときに意識してたこととか
Mitsuhiro Yamashita
re:Growth 2021 コンピュートサービスの進化を語る
Shuji Kikuchi
AWS Premier Night #2 in Osaka『Amazon Elasticsearch Serviceのおもしろい使い方』
Takayoshi Kobayashi
re:growth2019_transitgateway
jukiyashimakawashima
What's new with Serverless
Keisuke Nishitani
20200623 Client VPNの使いどころ
Masaru Ogura
OpsJAWS 20160128
hideaki yanase
四国クラウドお遍路20141004
Genta Watanabe
AWSカルタで楽しくAWSサービスを覚えよう
真吾 吉田
20150901 ops jaws_araya_v2
Mitsuru Araya
re:Invent 2021のS3アップデート紹介 & Glacier Instant Retrieval試してみた
Hideaki Aoyagi
Raspberry Piを利用した顔の表情分析と感情を認識するシステム構築
Hyunmin Kim
JAWSUG札幌-社内環境見える化計画
Serverworks Co.,Ltd.
Ops jaws meetup#3
Tomoaki Sakatoku
Ad
Similar to Cloudfront cli tips
(14)
PDF
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive
Amazon Web Services Japan
PDF
CloudStack User Inferface
Kimihiko Kitase
PDF
コンテナ時代にインフラエンジニアは何をするのか
gree_tech
PDF
Openstack+Ceph設定ガイド
OSSラボ株式会社
PDF
#cross2012 クラウドCROSS ニフティの中の人によるニフティクラウド活用
Abe Junichiro
PDF
AWS Black Belt Techシリーズ AWS Command Line Interface
Amazon Web Services Japan
PDF
ニフティクラウドを使った安定運用のススメ
NIFTY Cloud
PDF
Develipers.IO 2016 E-1 「AWS Configを使ったAWS環境の見える化」
morisshi
PDF
Rancher/Kubernetes入門ハンズオン資料~第2回さくらとコンテナの夕べ #さくらの夕べ 番外編
Masahito Zembutsu
PPTX
Citrix eco new
Naotaka Jay HOTTA
PPTX
CloudFront最近の事例と間違った使い方
Hirokazu Ouchi
PDF
Acm2.1 short public
Yuhki Hanada
PDF
NCstudy 2.5
Yuichi Saotome
PDF
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信
Amazon Web Services Japan
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive
Amazon Web Services Japan
CloudStack User Inferface
Kimihiko Kitase
コンテナ時代にインフラエンジニアは何をするのか
gree_tech
Openstack+Ceph設定ガイド
OSSラボ株式会社
#cross2012 クラウドCROSS ニフティの中の人によるニフティクラウド活用
Abe Junichiro
AWS Black Belt Techシリーズ AWS Command Line Interface
Amazon Web Services Japan
ニフティクラウドを使った安定運用のススメ
NIFTY Cloud
Develipers.IO 2016 E-1 「AWS Configを使ったAWS環境の見える化」
morisshi
Rancher/Kubernetes入門ハンズオン資料~第2回さくらとコンテナの夕べ #さくらの夕べ 番外編
Masahito Zembutsu
Citrix eco new
Naotaka Jay HOTTA
CloudFront最近の事例と間違った使い方
Hirokazu Ouchi
Acm2.1 short public
Yuhki Hanada
NCstudy 2.5
Yuichi Saotome
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信
Amazon Web Services Japan
Ad
More from kota tomimatsu
(7)
PDF
aws-multiaccount-notify
kota tomimatsu
PDF
aws health organizations notifications
kota tomimatsu
PDF
Aws github-actions-with-role
kota tomimatsu
PDF
Jaws controltower
kota tomimatsu
PDF
AWS Client vpn pattern
kota tomimatsu
PDF
Organizations周りの機能
kota tomimatsu
PDF
ClientVPNとPrivateca
kota tomimatsu
aws-multiaccount-notify
kota tomimatsu
aws health organizations notifications
kota tomimatsu
Aws github-actions-with-role
kota tomimatsu
Jaws controltower
kota tomimatsu
AWS Client vpn pattern
kota tomimatsu
Organizations周りの機能
kota tomimatsu
ClientVPNとPrivateca
kota tomimatsu
Cloudfront cli tips
1.
CloudFrontのCLI tips
2.
自己紹介 名前:富松 広太(とみまつ こうた) Blog:https://cloud-aws-gcp.hateblo.jp/ twitter:@kotamemento 所属:株式会社 Turn
and Frontier(関西クラウドベンダー) 2020 APN ALL AWS Certifications Engineer from:滋賀県
3.
cloudfrontを変更する時の話 cloudfrontの設定変更して欲しい xxxとxxとxxxxxxx コード管理されていない環境だけど 設定のsnapshot的なものを取りたい 切戻簡単にやりたい テスト環境との差異確認したい
4.
cloudfrontを変更する時の話 cloudfrontの設定変更して欲しい xxxとxxとxxxxxxx コード管理されていない環境だけど 設定のsnapshot的なものを取りたい 切戻簡単にやりたい テスト環境との差異確認したい #設定(の断面)を取得する aws cloudfront get-distribution-config #configファイルを元にcloudfrontを設定する aws
cloudfront update-distribution CLI使うと便利かも
5.
設定(の断面)を取得する aws cloudfront get-distribution-config 変更前 Cloud Front json(変更前) 実際のコマンド cfid="xxxxxxxxxxx" aws
cloudfront get-distribution-config --id ${cfid}| jq ".DistributionConfig" >${cfid}_`date +%Y%m%d`_before.json
6.
変更を適応
7.
#変更後の設定を取得する aws cloudfront get-distribution-config
--id ${cfid}| jq ".DistributionConfig" >${cfid}_`date +%Y%m%d`_after.json #差異を確認(テスト環境と比較時は環境差異あり) diff ${cfid}_`date +%Y%m%d`_before.json ${cfid}_`date +%Y%m%d`_after.json 変更後 Cloud Front json(変更前) json(変更後)
8.
切り戻し 実際のコマンド etag=$(aws cloudfront get-distribution-config
--id ${cfid} | jq -r '.ETag') aws cloudfront update-distribution --id ${cfid} --if-match ${etag} --distribution-config file://./${cfid}_`date +%Y%m%d`_before.json Cloud Front json(変更前) json(変更後) #切戻時 configファイルを元にcloudfrontを設定する aws cloudfront update-distribution
9.
まとめ #設定のバックアップを取得する cfid="xxxxxxxxxxx" aws cloudfront get-distribution-config
--id ${cfid}| jq ".DistributionConfig" >${cfid}_`date +%Y%m%d`_before.json #変更する #変更後の設定を取得する aws cloudfront get-distribution-config --id ${cfid}| jq ".DistributionConfig" >${cfid}_`date +%Y%m%d`_after.json #差異を確認 diff ${cfid}_`date +%Y%m%d`_before.json ${cfid}_`date +%Y%m%d`_after.json #切り戻ししたい時 etag=$(aws cloudfront get-distribution-config --id ${cfid} | jq -r '.ETag') aws cloudfront update-distribution --id ${cfid} --if-match ${etag} --distribution-config file://./${cfid}_`date +%Y%m%d`_before.json
Download