Commit 5f1e4045 authored by Lars Thorup's avatar Lars Thorup

deploy to AWS S3

parent 668e6031
Pipeline #43034099 passed with stages
in 2 minutes and 15 seconds
# fullstackagile.eu website
npm install
npm run serve
Markdown reference: https://markdown-it.github.io/
[AWS configuration](./aws-setup.md)
# AWS configuration
## S3
### Bucket
* Name: fullstackagile-live
* Region: eu-central-1
* Static Website Hosting: enabled
* Index document: index.html
* Policy:
```
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::fullstackagile-live/*"
}]
}
```
## IAM
### Policy
* Name: s3-fullstackagile-live-uploading
```
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::fullstackagile-live/*"
},{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "s3:ListObjects",
"Resource": "*"
}]
}
```
### User
* Name: s3-fullstackagile-live-uploader
* Access type: programmatic
* Policy: s3-fullstackagile-live-uploading
## GitLab environment
* In Settings | CI/CD | Environment variables
* From IAM user account created above
* AWS_ACCESS_KEY_ID
* AWS_SECRET_ACCESS_KEY
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment