Загрузка страницы

Angular application CI/CD AWS CodePipeline in S3 Step-by-Step Tutorial

Building a CI/CD AWS CodePipeline for an Angular Application. In this tutorial, we are going to be building a CI/CD on AWS for an Angular Application using the AWS CodePipeline Service.
Github repo: https://github.com/ibercode/angular-aws-cicd.git
buildspec.yml
https://github.com/ibercode/angular-aws-cicd/blob/main/buildspec.yml
S3 bucket policy
https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteAccessPermissionsReqd.html

buildspec.yml file:

version: 0.2

env:
variables:
CACHE_CONTROL: "86400"
S3_BUCKET: "{{s3_bucket_url}}"
BUILD_FOLDER: "dist"
phases:
install:
runtime-versions:
nodejs: 14
commands:
- echo Installing source NPM dependencies...
- npm install
- npm install -g @angular/cli
build:
commands:
- echo Build started
- ng build
artifacts:
files:
- '**/*'
base-directory: 'dist*'
discard-paths: yes

---------------
AWS S3 bucket policy: https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteAccessPermissionsReqd.html
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::example.com/*"
]
}
]
}

Видео Angular application CI/CD AWS CodePipeline in S3 Step-by-Step Tutorial канала IBERCODE
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 марта 2021 г. 21:08:28
00:13:35
Яндекс.Метрика