nmoller / aws-res

Exploration moodle AWS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ECS overview

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

Moodle

Cloudformation templates

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/

About

Exploration moodle AWS.


Languages

Language:HTML 53.5%Language:JavaScript 36.5%Language:CSS 8.9%Language:PHP 0.7%Language:Shell 0.4%Language:Dockerfile 0.1%