generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Terraform is recreating Appflow Flow #317
Labels
bug
upstream-plugin-framework
Unable to proceed due to missing or broken functionality from terraform-plugin-framework
Comments
Hi @juanforo, would you be able to share the value of local.task_map_list? |
ewbankkit
added
bug
upstream-plugin-framework
Unable to proceed due to missing or broken functionality from terraform-plugin-framework
labels
Dec 8, 2021
Hi @nicoodle Sure! Below you will find the value of that local expression. locals {
task_map = { for index in range(length(var.tasks)) :
"task-${index}" => {
connector_operator = { "salesforce" = var.tasks[index].connector_operator }
source_fields = try(var.tasks[index].source_fields)
destination_field = try(var.tasks[index].destination_field, "")
task_type = try(var.tasks[index].task_type)
task_properties = try(var.tasks[index].task_properties)
}
}
task_map_list = [for k, v in local.task_map : v]
} These are the values of the variables appflow_flow_name = "my-flow"
kms_arn = "arn:aws:kms:us-east-1:xxxxxxx:key/xxxxxxxxx"
source_flow_config = {
connector_profile_name = "my-salesforce-connection"
connector_type = "Salesforce"
enable_dynamic_field_update = false
include_deleted_records = false
object = "AccountChangeEvent"
}
destination_flow_config = {
connector_profile_name = "my-salesforce-connection"
connector_type = "EventBridge"
bucket_name = "my-salesforce-bucket"
bucket_prefix = ""
fail_on_first_error = false
}
trigger_type = "Event"
task_map = [
{
source_fields = [
"Id",
"ReplayId",
"ChangeEventHeader",
"Name",
"LastName",
"FirstName",
"Salutation",
"MiddleName",
"Suffix",
"Type",
"RecordTypeId",
"ParentId",
"BillingStreet",
"BillingCity",
"BillingState",
"BillingPostalCode",
"BillingCountry",
"BillingLatitude",
"BillingLongitude",
"BillingGeocodeAccuracy",
"BillingAddress",
"ShippingStreet",
"ShippingCity",
"ShippingState",
"ShippingPostalCode",
"ShippingCountry",
"ShippingLatitude",
"ShippingLongitude",
"ShippingGeocodeAccuracy",
"ShippingAddress",
"Phone",
"Website",
"Industry",
"NumberOfEmployees",
"Description",
"OwnerId",
"CreatedDate",
"CreatedById",
"LastModifiedDate",
"LastModifiedById",
"Jigsaw",
"JigsawCompanyId",
"AccountSource",
"SicDesc",
"Status__c",
"Last_Owner_Change_Date__c"
],
connector_operator = "PROJECTION"
task_type = "Filter"
task_properties = null
},
{
source_fields = ["Id"]
connector_operator = "NO_OP"
destination_field = "Id"
task_type = "Map"
task_properties = [{
key = "DESTINATION_DATA_TYPE",
value = "string"
},
{
key = "SOURCE_DATA_TYPE",
value = "string"
}
]
},
{
source_fields = ["ReplayId"]
connector_operator = "NO_OP"
destination_field = "ReplayId"
task_type = "Map"
task_properties = [{
key = "DESTINATION_DATA_TYPE",
value = "string"
},
{
key = "SOURCE_DATA_TYPE",
value = "string"
}
]
}
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
upstream-plugin-framework
Unable to proceed due to missing or broken functionality from terraform-plugin-framework
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
After successful creation, no changes should appear when creating a plan
Actual Behavior
Every time when I run a plan or apply terraform is re-creating the resource stating changes in KMS. Even though nothing changed.
When creating for the first time:
A consecutive plan:
Steps to Reproduce
terraform plan
terraform apply
References
The text was updated successfully, but these errors were encountered: