-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Enhancement]: AWS AppFlow for Microsoft SharePoint #35779
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Would be great to have. Any plans? |
Is it possible to Terraform an AWS AppFlow SharePoint automation using the |
Yes, but it is not straightforward. locals {
azure_sharepoint_tenant_id = "<tenant-id>"
sharepoint_entity = "<copy from import after UI config>"
sharepoint_subentity = "<copy from import after UI config>"
}
resource "aws_appflow_connector_profile" "sharepoint" {
name = "Sharepoint"
connector_type = "CustomConnector"
connection_mode = "Public"
connector_label = "MicrosoftSharePointOnline"
connector_profile_config {
connector_profile_credentials {}
connector_profile_properties {
custom_connector {
oauth2_properties {
oauth2_grant_type = "AUTHORIZATION_CODE"
token_url = "https://login.microsoftonline.com/${local.azure_sharepoint_tenant_id}/oauth2/v2.0/token"
}
}
}
}
}
resource "aws_appflow_flow" "flow" {
name = "FlowName"
description = "Flow description"
source_flow_config {
connector_type = "CustomConnector"
connector_profile_name = "Sharepoint"
api_version = "v1.0"
incremental_pull_config {
datetime_type_field_name = "lastModifiedDateTime"
}
source_connector_properties {
custom_connector {
entity_name = local.sharepoint_entity
custom_properties = {
subEntities = jsonencode([local.sharepoint_subentity])
}
}
}
}
destination_flow_config {
connector_type = "S3"
destination_connector_properties {
s3 {
bucket_name = "bucket-name"
bucket_prefix = "prefix"
# full path will be s3://bucket-name/prefix/flowName/
s3_output_format_config {
file_type = "JSON"
}
}
}
}
task {
source_fields = ["name"]
destination_field = "name"
task_type = "Map"
task_properties = {
"DESTINATION_DATA_TYPE" = "String"
"SOURCE_DATA_TYPE" = "String"
}
connector_operator {
custom_connector = "NO_OP"
}
}
task {
destination_field = ""
source_fields = ["name"]
task_type = "Filter"
task_properties = {}
connector_operator {
custom_connector = "PROJECTION"
}
}
trigger_config {
// your config
}
} |
@NicholasFiorentini - do you know if the connection itself can be created programatically via AWS API, or is it something that is Console only? |
No idea I didn't try with API or cli. |
Actually, you cannot import the connector due to:
|
Nevermind, if you replan this no longer appears and everything looks fine. |
Description
The current Terraform AWS AppFlow doesn't support Microsoft SharePoint as a source location.
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appflow_flow#custom-connector-source-properties
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: