- Print
- Comment
- DarkLight
- PDF
Step 8 - Copy Files to Terraform Folder - Build
Article Summary
Share feedback
Thanks for sharing your feedback!
In this task we will copy the Terraform files from the solution to the artifact staging directory so that we can package it up for easy deployment across environments as part of the drop publishing.
The picture of the task configuration is below:
YAML
The yaml for this task is:
steps:
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)\Terraform'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: |
**/*.tf
**/*.tfvars
TargetFolder: '$(Build.ArtifactStagingDirectory)\Terraform'
Was this article helpful?