Created
October 30, 2019 14:48
-
-
Save tomislacker/aee8d11cf008d35cf05b7e322a37c05d to your computer and use it in GitHub Desktop.
2019-10-30 Dynamic Reference Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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