Skip to content

Commit

Permalink
Remove remove aws_s3_object airflow_local_settings_dev and aws_s3_obj…
Browse files Browse the repository at this point in the history
…ect airflow_local_settings_prod (#6590)

* remove airflow_local_settings

* delete local_settings files
  • Loading branch information
BrianEllwood authored Jan 24, 2025
1 parent 0ce0038 commit ab660f2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ resource "aws_s3_object" "kubeconfig_dev" {
server_side_encryption = "AES256"
}

resource "aws_s3_object" "airflow_local_settings_dev" {
bucket = "mojap-airflow-dev"
key = "dags/airflow_local_settings.py"
source = "./files/dev/airflow_local_settings.py"

# The filemd5() function is available in Terraform 0.11.12 and later
# For Terraform 0.11.11 and earlier, use the md5() function and the file() function:
# etag = "${md5(file("path/to/file"))}"
etag = filemd5("./files/dev/airflow_local_settings.py")
server_side_encryption = "AES256"

provisioner "local-exec" {
command = "bash scripts/update-mwaa-environment.sh ${var.account_ids["analytical-platform-data-production"]} dev"
}
}

resource "aws_s3_bucket_policy" "airflow_dev_bucket_policy" {
bucket = aws_s3_bucket.mojap_airflow_dev.id
policy = data.aws_iam_policy_document.airflow_bucket_policy.json
Expand Down Expand Up @@ -188,19 +172,3 @@ data "aws_iam_policy_document" "allow_s3_sync_role_to_see_prod_bucket" {
}
}
}

resource "aws_s3_object" "airflow_local_settings_prod" {
bucket = "mojap-airflow-prod"
key = "dags/airflow_local_settings.py"
source = "./files/prod/airflow_local_settings.py"

# The filemd5() function is available in Terraform 0.11.12 and later
# For Terraform 0.11.11 and earlier, use the md5() function and the file() function:
# etag = "${md5(file("path/to/file"))}"
etag = filemd5("./files/prod/airflow_local_settings.py")
server_side_encryption = "AES256"

provisioner "local-exec" {
command = "bash scripts/update-mwaa-environment.sh ${var.account_ids["analytical-platform-data-production"]} prod"
}
}

This file was deleted.

This file was deleted.

0 comments on commit ab660f2

Please sign in to comment.