9
6

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 3 years have passed since last update.

VSCodeにCloudFormation Linterをインストールする手順

Last updated at Posted at 2021-03-20

CloudFormation Linterとは?

CFnテンプレートをチェック、プロパティ保管も用意されており、
入れない理由がないと言っても過言ではないVSCodeのプラグインです!

環境

❯ code -v
1.54.3

❯ pip3 --version
pip 20.3.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

1. pipでcfn-lintインストール

> pip3 install cfn-lint

2. cfn-lintのパスを確認

あとで使うのでメモ

❯ which cfn-lint
/usr/local/bin/cfn-lint

3. VSCode拡張機能のCloudFormation Linterをインストール

スクリーンショット 2021-03-20 18.10.07.png

4. CloudFormation LinterのPathを変更

VSCodeの設定を開きます。⌘ + ,
先ほどメモしたパスをCfn Lint: Pathに設定
スクリーンショット 2021-03-20 18.22.31.png

完了!!!

スクリーンショット 2021-03-20 18.29.27.png

参考

Linterを使ってCloudFormationの間違いに爆速で気づく
VSCodeにCloudFormationのLinterを追加する

9
6
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
9
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?