Skip to content

Commit

Permalink
remove data.external.secret_token
Browse files Browse the repository at this point in the history
This is not used anymore and doesn't work with the
updated secret_token.sh script.
  • Loading branch information
endorama committed Jan 13, 2025
1 parent f2f91a4 commit 33667c9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions testing/infra/terraform/modules/ec_deployment/deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ resource "null_resource" "secret_token" {
}
}

# Since the secret token value is set in the APM Integration policy, we need
# to extract it from there.
# Load it from secret_token_file as a sensitive variable.
data "local_sensitive_file" "secret_token" {
filename = local.secret_token_file
depends_on = [null_resource.secret_token]
Expand Down Expand Up @@ -216,16 +219,6 @@ resource "null_resource" "custom_apm_integration_pkg" {
}
}

# Since the secret token value is set in the APM Integration policy, we need
# an "external" resource to run a shell script that returns the secret token
# as {"value":"SECRET_TOKEN"}.
data "external" "secret_token" {
count = var.integrations_server ? 1 : 0
depends_on = [local_file.secret_token]
program = ["/bin/bash", "-c", "scripts/secret_token.sh"]
working_dir = path.module
}

resource "null_resource" "drop_pipeline" {
count = var.drop_pipeline ? 1 : 0
triggers = {
Expand Down

0 comments on commit 33667c9

Please sign in to comment.