Skip to content

Replace deprecated property in terraform outputs file #4

Replace deprecated property in terraform outputs file

Replace deprecated property in terraform outputs file #4

Workflow file for this run

name: Deploy to S3
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.BUCKET_REGION }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Initialize Terraform
run: terraform init
- name: Validate Terraform
run: terraform validate
- name: Plan Terraform
run: terraform plan -out=tfplan
env:
TF_VAR_bucket_name: ${{ secrets.BUCKET_NAME }}
TF_VAR_bucket_region: ${{ secrets.BUCKET_REGION }}
- name: Apply Terraform
run: terraform apply -auto-approve tfplan
env:
TF_VAR_bucket_name: ${{ secrets.BUCKET_NAME }}
TF_VAR_bucket_region: ${{ secrets.BUCKET_REGION }}