Cloudformation template in SSM Document using AWS::Include

0

We are interested in storing Cloudformation templates in SSM Documents instead of S3. However, the SSM document size limit of 64kB is small and one of our templates is larger.

It would make sense to use AWS::Include and manage some parts of the large template as sub-templates, also stored as SSM Documents. According to the documentation of AWS::Include it only supports S3 URIs. It seems like an unfortunate omission given that SSM Documents have the 64kB limit.

Any plans to support ssm-doc in AWS::Include or is there some other workaround to recommend?

Thanks

질문됨 7달 전419회 조회
1개 답변
0

Hi,

You have a simpler optiony breaking your big template into a set of smaller templates (each stored as SSM document) and share the info that you need via outputs that you export into a namespace that you define. Then you read those exported values from your other templates that need those values.

Re. exports, see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html

The optimal way is to organize your new templates by "layers" of resources corresponding to the dependencies between all of them.

That is what I personally use very often in similar situations.

Best,

Didier

profile pictureAWS
전문가
답변함 7달 전
profile picture
전문가
검토됨 7달 전
  • Thanks for the suggestion!

    We already have "layered" templates using export/import as well as SSM Parameters. However, the initial template is fairly large because it is the only one that requires IAM capability during create/update (very important for the delegation of permissions).

    If we did break this template into smaller templates, we would need to perform multiple "Create Application" operations in Application Manager (or Cfn UI / CLI) for the same end result. Seems unfortunate but storing templates in SSM Documents brings important value.

    Thanks, Thomas Å.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠