Deploy your Angular app to Amazon S3 directly from the Angular CLI.
-
Install the latest version of Angular cli
yarn global add @angular/cli
-
Create a new Angular project
ng new hello-world --defaults cd hello-world
-
Add
@jefiozie/ngx-aws-deploy
to your projectng add @jefiozie/ngx-aws-deploy
-
You will be prompted for a couple of questions:
- Your AWS Region
- The bucket you would like the files to be uploaded.
- The Secret Acces Key
- The Access key Id
-
After these step your
angular.json
is update with a new builder:"deploy": { "builder": "@jefiozie/ngx-aws-deploy:deploy", "options": { "region": "YOUR REGION", "bucket": "YOUR BUCKET", "secretAccessKey": "YOUR SECRET ACCESSKEY", "accessKeyId": "YOUR ACCES KEY ID" } }
-
Run
ng-deploy
to deploy your application to Amazon S3.
πHappy deploying! π
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
The builder is located in the builder
folder.
The sample app is located in the builder-test
folder.
Please make sure to update tests as appropriate.
Thanks goes to these wonderful people (emoji key):
Jeffrey Bosch π» π π |
Santosh Yadav π» |
This project follows the all-contributors specification. Contributions of any kind welcome!