Skip to content
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

feat(data_sources): warehouse exposing MCON's implementation #41

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

ndopj
Copy link
Contributor

@ndopj ndopj commented Oct 11, 2023

Initial implementation of data resource montecarlo_warehouse.
This resource is responsible for collecting all of the assets in the given Monte Carlo warehouse and mapping them to their MCON's (Monte Carlo universal identifier (if you're familiar with AWS you can think of it like the ARN)).

Such functionality is very beneficial in all of the resources that accept data asset's MCON's in one of their input arguments since user will not provide MCON's translation by themselves.

  • Example usage of domains without data resource warehouse:
resource "montecarlo_domain" "example_assignments" {
  name        = "name"
  description = "description"
  assignments = [
    "MCON++a84380ed-b962-4bd3-b150-04bc38a209d5++427a1600-2653-40c5-a1e7-5ec98703ee9d++project++gcp-project1-722af1c6",
    "MCON++a84380ed-b962-4bd3-b150-04bc38a209d5++e7c59fd6-7ca8-41e7-8325-062ea38d3df5++dataset++postgre-dataset-1"
  ]
}
  • Example usage of domains with data resource warehouse
data "montecarlo_warehouse" "example" {
  uuid = "af73e512-dcbc-48c6-aeec-af9e7fa09f34"
}

resource "montecarlo_domain" "example_assignments" {
  name        = "name"
  description = "description"
  assignments = [
    data.montecarlo_warehouse.example.projects["gcp-project1-722af1c6"].mcon,
    data.montecarlo_warehouse.example.projects["gcp-project2-544ce4d7"].datasets["postgre-dataset-1"].mcon
  ]
}

@ndopj ndopj added the feature New feature or request label Oct 11, 2023
@ndopj ndopj self-assigned this Oct 11, 2023
@ndopj ndopj merged commit af848f3 into master Oct 11, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant