I'm very new to the AWS services. I'm trying to use the AWS cloud formation and I created a template. The template is error free and I am able to create machines using that.
But I have added some config in the template such that it installs tomcat, git and other things during startup. But that doesn't happen for me.
Here is a part of code I used for installing tomcat :
"Resources": {
"Tomcat": {
"Type": "AWS::EC2::Instance",
"Metadata": {
"AWS::CloudFormation::Init": {
"config": {
"packages": {
"apt": {
"tomcat6": [],
"git": [],
}
}
}
}
},
But when I log into the machine neither tomcat
nor git
have been installed!
Thanks in advance.