Closed tgvashworth closed 10 months ago
@oavdeev Hey! Do you think someone will be able to have a look at this soon?
Following up on this: we are using a fork of the TF config with this commit, and the lambda etc is all working fine.
This would fix the perpetual diff we see in our pipelines! ✨ Can it be merged please? Happy to help if needed.
Merged as #81
We had a problem where we were seeing Terraform config drift and unstable plans because the
db_migrate_lambda.zip
file was being written inside the terraform module folder, which can be outside the repo folder (e.g. ifTF_DATA_DIR
is set). That means there is no zip file (orindex.py
) available to a freshplan
and so TF detects a deletion.A solution to this is to commit or to cache the zip file across builds, but this TF module does not allow that location to be customised.
This PR makes two changes:
To test this: