Ben Arundel
04/10/2024, 9:06 PMPePe Amengual
04/10/2024, 9:50 PMPePe Amengual
04/10/2024, 9:51 PMPePe Amengual
04/10/2024, 9:51 PMBen Arundel
04/10/2024, 10:15 PM{
"repos": [
{
"id": "/.*/",
"workflow": "terragrunt"
}
],
"workflows": {
"terragrunt": {
"plan": {
"steps": [
{
"env": {
"name": "TERRAGRUNT_TFPATH",
"command": "echo \"terraform${ATLANTIS_TERRAFORM_VERSION}\""
}
},
{
"env": {
"name": "TF_IN_AUTOMATION",
"value": "true"
}
},
{
"run": {
"command": "terragrunt plan -out $PLANFILE",
}
},
{
"run": "terragrunt show $PLANFILE\n"
}
]
},
"apply": {
"steps": [
{
"env": {
"name": "TERRAGRUNT_TFPATH",
"command": "echo \"terraform${ATLANTIS_TERRAFORM_VERSION}\""
}
},
{
"env": {
"name": "TF_IN_AUTOMATION",
"value": "true"
}
},
{
"run": "terragrunt apply -input=false $PLANFILE"
}
]
},
"import": {
"steps": [
{
"env": {
"name": "TERRAGRUNT_TFPATH",
"command": "echo \"terraform${DEFAULT_TERRAFORM_VERSION}\""
}
},
{
"env": {
"name": "TF_VAR_author",
"command": "git show -s --format=\"%ae\" $HEAD_COMMIT"
}
},
{
"run": "terragrunt import -input=false $(printf '%s' $COMMENT_ARGS | sed 's/,/ /' | tr -d '\\\\')"
}
]
},
"state_rm": {
"steps": [
{
"env": {
"name": "TERRAGRUNT_TFPATH",
"command": "echo \"terraform${DEFAULT_TERRAFORM_VERSION}\""
}
},
{
"run": "terragrunt state rm $(printf '%s' $COMMENT_ARGS | sed 's/,/ /' | tr -d '\\\\')"
}
]
}
}
}
}