Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move database migration script to a dedicated file #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CommanderK5
Copy link

Hi!

Currently, every plan (in a CI/CD run) for this module results in update even though the Terraform code hasn’t changed. This is because of the index.py migration script being generated from tf. Moving this script to a file resolve this problem.

<= data "archive_file" "db_migrate_lambda" {
      + id                  = (known after apply)
      + output_base64sha256 = (known after apply)
      + output_file_mode    = "0666"
      + output_md5          = (known after apply)
      + output_path         = ".terraform/modules/metaflow/modules/metadata-service/db_migrate_lambda.zip"
      + output_sha          = (known after apply)
      + output_size         = (known after apply)
      + source_file         = ".terraform/modules/metaflow/modules/metadata-service/index.py"
      + type                = "zip"
    }

  # module.metaflow.module.metaflow-metadata-service.aws_lambda_function.db_migrate_lambda will be updated in-place
  ~ resource "aws_lambda_function" "db_migrate_lambda" {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant