David DeStefano
02/25/2025, 3:08 PMresource "prefect_flow" "base_flow" {
name = "my-example-flow"
workspace_id = local.prefect_workspace_id
tags = []
account_id = local.prefect_account_id
}
resource "prefect_deployment" "base_deployment" {
name = "stg--pipeline-testing"
flow_id = prefect_flow.base_flow.id
entrypoint = "pipeline-testing/main.py:root"
workspace_id = local.prefect_workspace_id
account_id = local.prefect_account_id
paused = false
pull_steps = [
{
type = "set_working_directory",
directory = "/opt/prefect/pre",
}
]
job_variables = jsonencode({
"image" : "{mask}.<http://dkr.ecr.us-east-1.amazonaws.com/ml-mono/test/prefect:v1.2.3|dkr.ecr.us-east-1.amazonaws.com/ml-mono/test/prefect:v1.2.3>"
})
work_pool_name = prefect_work_pool.pipeline_work_pool.name
work_queue_name = "default"
depends_on = [
prefect_work_pool.pipeline_work_pool
]
}
running terraform apply
Plan: 1 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
prefect_flow.base_flow: Modifying... [id=2e70432a-5b85-440a-80f6-d2b5833312d1]
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to prefect_flow.base_flow, provider "provider[\"<http://registry.terraform.io/prefecthq/prefect\|registry.terraform.io/prefecthq/prefect\>"]"
│ produced an unexpected new value: .account_id: inconsistent values for sensitive attribute.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
mac:stg destefano$
Jamie Zieziula
02/25/2025, 3:09 PMDavid DeStefano
02/25/2025, 3:09 PMterraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
prefect = {
source = "prefecthq/prefect"
version = "2.17.1"
}
}
}
Mitch Nielsen
02/25/2025, 3:13 PMprovider
section for prefect?Mitch Nielsen
02/25/2025, 3:13 PMDavid DeStefano
02/25/2025, 3:14 PMDavid DeStefano
02/25/2025, 3:15 PMprovider "aws" {
region = local.aws_region
}
provider "prefect" {
account_id = local.prefect_account_id
api_key = local.prefect_api_key
}
Mitch Nielsen
02/25/2025, 3:16 PMterraform destroy
to start from a fresh state?David DeStefano
02/25/2025, 3:16 PMMitch Nielsen
02/25/2025, 3:16 PMaccount_id
and workspace_id
on the provider
section so you don't need to specify them for every resource 👍David DeStefano
02/25/2025, 3:17 PMMitch Nielsen
02/25/2025, 3:17 PMMitch Nielsen
02/25/2025, 3:17 PMflow
resource, so the error is pretty oddDavid DeStefano
02/25/2025, 3:21 PMMitch Nielsen
02/25/2025, 3:21 PMDavid DeStefano
02/25/2025, 3:22 PMMitch Nielsen
02/25/2025, 3:25 PMDavid DeStefano
02/25/2025, 3:25 PMMitch Nielsen
02/25/2025, 3:28 PMDavid DeStefano
02/25/2025, 3:29 PMMitch Nielsen
02/25/2025, 3:29 PM