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:

https://s3.amazonaws.com/cloudformation-templates-us-east-1/autoscalingmultiazwithnotifications.template

take @ "launchconfig" resource.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -