Skip to content

Inclusão da chave SSH para clonar dos repositórios remotos #2

Inclusão da chave SSH para clonar dos repositórios remotos

Inclusão da chave SSH para clonar dos repositórios remotos #2

Workflow file for this run

name: Terraform Apply
on:
push:
branches:
- main
jobs:
terraform-apply:
runs-on: ubuntu-latest
environment: prd
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- uses: webfactory/[email protected]
with:
ssh-private-key: "${{ secrets.SSH_PRIVATE_KEY }}"
- name: Terraform Init
run: terraform init
- name: Terraform Plan
id: plan
run: terraform plan -out=plano
- name: Terraform Apply
run: terraform apply -auto-approve plano
- name: Clean up plan file
run: rm -f plano