- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2019-02-11T12:04:47+00:00","","")
#author("2019-02-13T13:13:24+00:00","","")
[[AWSメモ]] >
* AWS CloudFormationメモ [#q8714c67]
#setlinebreak(on);
#contents
-- 関連
--- [[AWS API Gateway&LambdaをFlaskに移行しやすいように作る]]
--- [[AWS IotにPublishされたデータをDynamoDBに登録する]]
--- [[AWS Lambdaで環境変数を使用する]]
--- [[PythonでAWS DynamoDBのCRUDを書いてみる]]
-- 参考
--- https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/Welcome.html
** 概要 [#dd0e7442]
#html(<div style="padding-left: 10px;">)
#TODO
#html(</div>)
** AWS CloudFormation テンプレート形式 [#a83d7460]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/template-formats.html
#html(</div>)
** 組み込み関数の利用 [#d4cfd34e]
#html(<div style="padding-left: 10px;">)
スタックの管理に役立ついくつかの組み込み関数が用意されている。
ここでは使用頻度の高い GetAtt と Ref について記載する。
参考
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html
*** GetAtt [#q6e79d07]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html
#html(</div>)
*** Ref [#l9fec0fa]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html
#html(</div>)
#html(</div>)
** マクロの利用 [#u18013e5]
#html(<div style="padding-left: 10px;">)
*** AWS::Serverless 変換 [#y2dbc281]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html
#html(</div>)
*** 定型コンテンツの挿入 [#ac8ec692]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html
#html(</div>)
#html(</div>)
** パラメータを使用する [#y20d2825]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html
#html(</div>)
** 条件を指定する [#f111df71]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html
#html(</div>)
** 他スタックの定義を再利用する [#kd44b137]
#html(<div style="padding-left: 10px;">)
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/walkthrough-crossstackref.html
#html(</div>)
** サンプル [#vad9a975]
#html(<div style="padding-left: 10px;">)
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html
参考: [[AWS リソースおよびプロパティタイプのリファレンス>https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html]]
** Lambda単体 [#e54a9659]
*** Lambda単体 [#gd05e635]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/cfn-reference-lambda.html
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
#html(</div>)
** API Gateway & Lambda [#bcad9846]
*** Lambda単体 (AWS::Serverless 変換を利用する場合) [#x629e4d5]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html
https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md
#html(</div>)
** DynamoDB [#p42a469c]
*** API Gateway & Lambda [#bcad9846]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/cfn-reference-apigateway.html
#html(</div>)
*** API Gateway & Lambda (AWS::Serverless 変換を利用する場合) [#laf9d052]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html
https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md
#html(</div>)
*** DynamoDB [#p42a469c]
#html(<div style="padding-left: 10px;">)
#TODO
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html
#html(</div>)
#html(</div>)