Skip to content

Commit

Permalink
added few modifs for tfplan
Browse files Browse the repository at this point in the history
  • Loading branch information
chefgs committed Jul 16, 2024
1 parent 9fe504b commit 656937f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tf_cloud_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
terraform plan -out=tfplan
working-directory: ${{ env.tfcode_path }}

- name: Show Terraform Plan
run: |
echo "** Showing Terraform Plan**"
terraform show -json "tfplan" | jq > tfplan.json
working-directory: ${{ env.tfcode_path }}

- name: Upload Terraform Plan
uses: actions/upload-artifact@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions tfcloud_samples/amazon_ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ terraform {
name = "example-workspace"
}
}
cloud {
organization = "gsaravanan-tf"
workspaces {
name = "example-workspace"
}
}
}

# Provider block declares the provider on which the infra will be created
Expand Down

0 comments on commit 656937f

Please sign in to comment.