makes-trail / application-sample

アプリ開発準備
0 stars 0 forks source link

CloudFormationを使いS3とCloudFrontを構築 #32

Closed kawabata2018 closed 3 years ago

kawabata2018 commented 3 years ago

背景

To do

完了条件

kawabata2018 commented 3 years ago

参考記事

Classmethodの記事の方が、CFnテンプレートの記法がきれい

kawabata2018 commented 3 years ago

CloudFormationの記法について

Metadataの使い道、Classmethod流Tagsの活用法

kawabata2018 commented 3 years ago

YamlファイルのLinter

https://nopipi.hatenablog.com/entry/2019/04/27/155616

  1. VSCodeに拡張機能YAML by Red Hatを追加
  2. settings.jsonに以下を追加
{
  "yaml.schemas": {
    "https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json": [
      "*.cf.yaml",
      "*.cf.yml",
      "cfn/*.yaml",
      "cfn/*.yml",
      "cloudformation/*.yaml",
      "cloudformation/*.yml"
    ]
  },
  "yaml.customTags": [
    "!And sequence",
    "!Equals sequence",
    "!If sequence",
    "!Not sequence",
    "!Or sequence",
    "!Base64",
    "!Cidr sequence",
    "!FindInMap sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!Join sequence",
    "!Select sequence",
    "!Split sequence",
    "!Sub",
    "!Ref"
  ]
}
kawabata2018 commented 3 years ago

33 で完了