Skip to content

Instantly share code, notes, and snippets.

@tomislacker
Created October 30, 2019 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomislacker/aee8d11cf008d35cf05b7e322a37c05d to your computer and use it in GitHub Desktop.
Save tomislacker/aee8d11cf008d35cf05b7e322a37c05d to your computer and use it in GitHub Desktop.
2019-10-30 Dynamic Reference Test
---
AWSTemplateFormatVersion: 2010-09-09
Description: |
testing dynamic references
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html
Parameters:
AMIParameterName:
#Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
Type: String
Default: '/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id'
Resources:
Bucket:
Type: AWS::S3::Bucket
Properties:
Tags:
- Key: AMI
Value: !Sub '{{resolve:ssm:${AMIParameterName}:22}}'
# vim: ft=yaml.cloudformation sw=2 ts=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment