AWS cli
docker run --rm -tiv $HOME/.aws:/root/.aws mikesir87/aws-cli aws --help
docker run --rm -tiv $HOME/.aws:/root/.aws mikesir87/aws-cli aws elasticbeanstalk help
# Pour lire un fichier
docker run --rm -tiv $HOME/.aws:/root/.aws \
-v $(pwd):/opt/templates --workdir /opt/templates \
mikesir87/aws-cli \
aws cloudformation validate-template --template-body file://00-master.yaml
Beanstalk - ECS
Comment from reddit
I wouldn’t do that. If you deploy an elastic beanstalk resource using Cloudformation then the elastic beanstalk service will automatically create that nested stack for you. If you try and do it manually then you won’t be using beanstalk and won’t get the benefits of the management console.
Instead I would use Cloudformation to define an AWS::ElasticBeanstalk::Application as document here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk.html
And an Environment as seen here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html
Actually, the whole basic structure you need is here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-elasticbeanstalk.html
Resources
-
https://www.trustradius.com/products/aws-elastic-beanstalk/reviews pas génial après qwiklabs "Building Scalable Web Applications with AWS Elastic Beanstalk"
-
https://support.tideways.com/article/88-install-on-aws-elastic-beanstalk
-
https://github.com/netbears/php-mysql-ecs/blob/master/cloudformation-template.yaml
-
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html
-
https://www.unicon.net/insights/blogs/aws-ecs-auto-scaling-part-1
-
https://www.1strategy.com/blog/2017/04/18/cloudformation-visualizing-cross-stack-references/
Moodle
- https://github.com/catalyst/moodle-tool_objectfs
- https://objectivefs.com/
- https://danielneis.github.io/moodleparadesenvolvedores/
- https://danielneis.github.io/how-to-use-moodle-27/chapter4.html
Cloudformation templates
- https://github.com/smalltide/aws-cloudformation-master
- https://github.com/PacktPublishing/AWS-CloudFormation-Master-Class
Moodle référence
Garder à l'esprit
https://moodle.org/mod/forum/discuss.php?d=370220
Linter
docker run --rm -t -v $(pwd):/opt dougtoppin/cfn-lint 00-master.yaml
Utilisation sceptre
docker run -it --rm -v $(pwd):/project \
-w /project -u 1000:1000 --entrypoint='' \
cloudreach/sceptre:latest sh
sceptre new project moodle
git clone https://github.com/aws-samples/aws-refarch-moodle.git.
# modifier cp commande pour avoir bonne structure
cp -r aws-refarch-moodle/templates/ moodle/templates/
mv templates/ templates01
mv templates01/templates templates
rm -rf templates01/