Step 8 - Copy Files to Terraform Folder - Build
  • 18 Nov 2019
  • 1 Minute to read
  • Contributors
  • Comment
  • Dark
    Light
  • PDF

Step 8 - Copy Files to Terraform Folder - Build

  • Comment
  • Dark
    Light
  • PDF

Article Summary

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:

image.png

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?