Score:0

Dynamic propagation from AWS SSM Parameters (to EC2 ASGs etc)

in flag

In AWS, can a Systems Manager Parameter Store parameter (with the aws:ec2:image data type) be referenced directly in the AMI field of a Launch Template used by an EC2 Auto Scaling Group, so that the new EC2 instances will automatically start with the most current AMI specified by that parameter? (Or is it necessary to separately configure EventBridge to monitor for parameter update events and trigger a Lambda to update the ASG configuration after each occasion, to achieve this effect?)

The docs state "You can reference Systems Manager parameters in your scripts, commands, SSM documents, and configuration and automation workflows"; but it isn't clear what "configuration" (or "workflows") mean in this context. Can parameter references be used in the settings of arbitrary AWS infrastructure (anywhere in place of text strings or numerical values), and if so does this cause AWS to dynamically update the resource each time the parameter value changes? Or do infrastructure updates still need to be propagated manually (by re-running scripts etc); is the {{ssm:param-name}} syntax only for use in CloudFormation templates or the AWS CLI?

Score:0
in flag

From the launch template API docs: in the ImageId field of the launch template data, "resolve:ssm:parameter-name" is accepted as a valid string (to defer resolving the parameter until upon launch of the instance).

It appears that specific features have been added to both Parameter Store and Launch Templates to support exactly the use case considered here.

This also suggests that {{ssm:parameter-name}} syntax is probably not a generally supported feature (and might only be resolved during parsing of a CloudFormation template, before any resources are live)?

(*Incidentally, the acronym SSM looks unexplained now but presumably the leading S formerly stood for Simple. It was evidently an AWS policy to name everything either simple or elastic.)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.