Provision all the resource required to host a website in AWS
name | description | required | default |
---|---|---|---|
domain |
Full domain of the website |
true |
"" |
content-path |
folder to publish as root of the website |
false |
"" |
action |
Desire outcome: apply, plan or destroy |
false |
apply |
name | description |
---|---|
ACTIONS_AWS_WEBSITE_BUCKET |
Website S3 bucket |
ACTIONS_AWS_DOMAIN |
This is the value in |
permissions:
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.ROLE_ARN }}
role-session-name: ${{ github.actor }}
- uses: alonch/actions-aws-backend-setup@main
with:
instance: demo
- uses: alonch/actions-aws-website@main
with:
domain: ${{ env.DOMAIN }}
content-path: public