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

Add data source for getting a list of Cloud Credentials #358

Closed
chris-ackerman-dentsu opened this issue May 4, 2022 · 0 comments · Fixed by #375
Closed

Add data source for getting a list of Cloud Credentials #358

chris-ackerman-dentsu opened this issue May 4, 2022 · 0 comments · Fixed by #375
Assignees
Labels
enhancement New feature or request

Comments

@chris-ackerman-dentsu
Copy link

Add a new data source to list all Cloud Credentials in the org.
This should provide a list of all the credential names in a given Org filtered by a credential type.

This list should be able to be used to create a credential data source based on the names returned.

Usage example:

data "env0_cloud_credentials" "azure_deployment_credentials" {
credential_type = "AZURE_SERVICE_PRINCIPAL_FOR_DEPLOYMENT "
}

data "env0_azure_credentials" "azure_deployment_credentials" {
for_each = toset(data.env0_cloud_credentials.azure_deployment_credentials.names)
name = each.value
}

Relevant API:
https://developer.env0.com/docs/api/b3A6ODc4NjAxMA-list-organization-credentials

@yaronya yaronya added this to To do in Ongoing Issues via automation May 8, 2022
@yaronya yaronya added the enhancement New feature or request label May 8, 2022
@TomerHeber TomerHeber moved this from To do to In progress in Ongoing Issues May 12, 2022
Ongoing Issues automation moved this from In progress to Done May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

3 participants