0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[AWS] CloudFront に適用されてるセキュリティポリシーをリストアップしたい

Posted at

AWSダッシュボードで表示されたり検索できればいいんだけど、できないので
(表示可能な列にセキュリティポリシーを表示されればよかったんですが...
スクリーンショット 2022-07-12 18.24.33.png

ってことで、aws-cli で出力して、jq で整形しましょうかね

$ aws cloudfront list-distributions --max-items 100 \
| jq -r '.DistributionList.Items[]|[.Id,.ViewerCertificate.SSLSupportMethod,.ViewerCertificate.CloudFrontDefaultCertificate,.ViewerCertificate.MinimumProtocolVersion]|@csv'

"EXXXXXXXXXXXX1","sni-only",false,"TLSv1.1_2016"
"EXXXXXXXXXXXX2","sni-only",false,"TLSv1.2_2018"
"EXXXXXXXXXXXX3","sni-only",false,"TLSv1.1_2021"
 :

TLSv1.2_2021 に変更する対象をリストアップできますね、やったー

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?