I'm trying to build a simple hello world on AWS Codebuild but I can't get the buildspec.yml working... I just want to put a simple html with some css in a folder. That's it.
This is the repo that I'm trying to build from.
If you look inside, the .yml has the following:
version: 0.2
run-as: ec2-user
phases:
install:
run-as: ec2-user
runtime-versions:
nodejs: 10
artifacts:
files:
- /index.html
name: artifact-name
- source: /
destination: /var/www/html
# base-directory: /var/www/html/
This and this are the doc for the .yml but I don't understand what to write, it's not java, not python, just an html.
EDIT: I forgot to put the error:
YAML_FILE_ERROR: mapping values are not allowed in this context at line 14
EDIT2:
This is how I have the buildspec.yml:
And this is how I have the env (the codedeploy and pipeline I'm using my own ec2 instance, is that a problem?)
FINAL EDIT:
The problem was the image! Change it to Ubuntu version 1.0


