amazon web services - How to add files for the ec2 instance which is launched with autoscaling group? -
i see can add files ec2 instance metadata cloudformation:init follows.
"resources": { "myinstance": { "type": "aws::ec2::instance", "metadata" : { "aws::cloudformation::init" : { "config" : { "packages" : { : }, "groups" : { : }, "users" : { : }, "sources" : { : }, "files" : { : }, "commands" : { : }, "services" : { : } } } }
} }
but when want launch instance autoscaling group, how can it? have tried add metadata under launch configuration ec2.
include metadata
structure in aws::autoscaling::launchconfiguration
resource used auto scaling group.
"launchconfig" : { "type" : "aws::autoscaling::launchconfiguration", "metadata" : { "aws::cloudformation::init" : { "config" : { "files" : { } } } }, "properties" : { } }
there sample here it:
take @ "launchconfig" resource.
Comments
Post a Comment