Skip to content

[RS] ConnectionsΒ #487

Open
Feature
@cyrilgagnaire

Description

@cyrilgagnaire

πŸ“ Description

When creating a fabric_workspace_git resource using GitHub as a type, I need to specify a connection_id in the git_credentials attributes.

I would like to be able to manage Fabric connections via Terraform so I could reference them in this block.

This could be extended to any connections that we can create through the Fabric Portal, not just GitHub.

πŸ”¬ Details / References

  • Resource Name: fabric_connection
  • API documentation:
  • Estimated complexity/effort: moderate
  • Related resources/data-sources: n/a

🚧 Potential Terraform Configuration / Desired Solution

resource "fabric_connection" "example" {
  name = "example"
  connectivity_type = "connectivityType"
  privacyLevel = "Organizational"

  connectionDetails = {
    type = "SQL"
    creationMethod = "SQL"
    parameters = [
      {
         dataType = "Text"
         name = "server"
         value = "contoso.database.windows.net"
      },
      {
         dataType = "Text"
         name = "database"
         value = "sales"
       }
    ]
  }

  credentialDetails =  {
     singleSignOnType =  "None"
     connectionEncryption =  "NotEncrypted"
     skipTestConnection =  false
     credentials =  {
       credentialType =  "Basic"
       username =  "admin"
       password =  "********"
    }
  }
  
}

πŸ“Ž Additional context

No response

β˜‘οΈ Acceptance Criteria

The resource must create the connection as specified

βœ… Definition of Done

  • Data Transfer Objects (DTOs)
  • Resource Implementation
  • Resource Added to Provider
  • Unit Tests for Happy path
  • Unit Tests for Error path
  • Acceptance Tests
  • Example in the ./examples folder
  • Schema documentation in code
  • Updated auto-generated provider docs with task docs

πŸ”° Code of Conduct

  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions