Added s3 module #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AWS Secuirty Challenge CI/CD | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- main.tf | |
jobs: | |
terraform: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v2.0.0 | |
with: | |
terraform_version: 1.3.0 | |
- name: Terraform Init,Plan and Apply | |
run: | | |
terraform init | |
terraform plan | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }} | |
TF_TOKEN_app_terraform_io: ${{ secrets.TERRAFORM_TOKEN }} |