Amazon AWS Cloudformation JSON template to assign the LAMP www/html folder permissions to ec2-user -


i have created json template create amazon aws lamp stack rds (free tier) , succeffully created stack. when tried move files var/www/html folder seems have no permission ec2-user. know changing permission of ssh. intention create template setup stack (hosting environment) without using ssh client.

also know how add file or copy zipped source var/ww/html cloudformation json templating. need is, create environment , later upload files using ftp client , db using workbench or something. please me attain goal, share publicly aws beginners not familiar setting things ssh.

the json template bit lengthy , here link code http://pasted.co/803836f5

use cloud formation init meta instead of userdata.

that way can run commands on server such pulling down files s3 , running gzip expand them.

http://docs.aws.amazon.com/awscloudformation/latest/userguide/aws-resource-init.html


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -