Skip to content

Instantly share code, notes, and snippets.

@pravargauba
Created April 27, 2019 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pravargauba/a49ea5247d3222be7aa03b13ce8585ca to your computer and use it in GitHub Desktop.
Save pravargauba/a49ea5247d3222be7aa03b13ce8585ca to your computer and use it in GitHub Desktop.
stage('Apply') {
steps {
sh ‘terraform apply -auto-approve tfplan.txt '
sh ‘echo "`terraform output`" | mail -s "${Env^} EC2 created by ${BUILD_USER} for ${Team} Team in ${region} region" -r email@company-domain.com email@company-domain.com’
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment