LoginSignup
0
0

More than 3 years have passed since last update.

CloudFromation/samテンプレートでよく使う記法のメモ

Last updated at Posted at 2020-01-21

本ページについて

  • マニュアルなどにも記載されているCloudFormation/samのテンプレートの記法のうち、よく使うけれどもどうだったっけ?となりやすいものをメモします。最新の情報はマニュアルをご確認ください。
  • 記述の方式は何通りか存在しますので、こちらに記載の内容”だけ”が唯一の書き方ではありません。

以下が前提です。

  • yaml形式

ImportValueとSubの組み合わせ

Importしたいエクスポート名自体をパラメータで変えたい場合

{'Fn::ImportValue': !Sub "hogehoge-${Parameter}"}

Importした値との文字列連結を行いたい場合。

- !Sub 
    - ${hogehoge}/hugahuga
    - hogehoge: {'Fn::ImportValue': example-export-name}

参考URL

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