@angular-custom-builders/aws-actions

This library was generated with Nx.

Usage no npm install needed!

<script type="module">
  import angularCustomBuildersAwsActions from 'https://cdn.skypack.dev/@angular-custom-builders/aws-actions';
</script>

README

aws-actions

This library was generated with Nx.

Running unit tests

The plugin allow to pull an artifact from an S3 bucket.

Precondition:

  • aws cli already installed
  • .env which contains the AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID

AWS pull action Download an artifact from S3 to local

"aws": {
  "builder": "@angular-custom-builders/aws-actions:pull",
  "options": {
    "bucket": "s3://myapp-builds/branch",
    "artifactName": "myapp.tar.bz2",
    "outputPath": "dist/apps/myapp"
  }
}

AWS push action Upload an artifact from local to S3

"aws": {
  "builder": "@angular-custom-builders/aws-actions:push",
  "options": {
    "bucket": "s3://myapp-builds/branch",
    "artifactName": "myapp.tar.bz2",
    "outputPath": "dist/apps/myapp"
  }
}