Support (de)activating an AWS appflow with a pseudo-resource #25085
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/appflow
Issues and PRs that pertain to the appflow service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Description
In order to create an AWS appflow that is connecting Salesforce to EventBridge, you have to create the resources in a specific order and in the end activate the appflow:
destination_flow_config.destination_connector_properties.event_bridge.object
will define the name of the EventBridge Partner Source that will be created by AWS behind the scenes automatically. This works with the aws_appflow_flow resource. The appflow will be in "Draft" state.destination_flow_config.destination_connector_properties.event_bridge.object
. This will implicitly connect the EventBridge Partner Source to the EventBridge Bus.As a workaround, we currently do this, but on terraform cloud this becomes even quirkier due to not having the aws cli installed:
New or Affected Resource(s)
Potential Terraform Configuration
The idea would be to activate the flow when the resource is supposed to be created and deactivate the flow when the resource is supposed to be destroyed. This way an appflow that is currently in activate state can also be deleted, which is not possible right now.
References
The text was updated successfully, but these errors were encountered: