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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for new azurerm_container_registry_repository_tags or azurerm_container_registry_repository_manifests data resource #21287

Open
1 task done
emoshaya opened this issue Apr 4, 2023 · 0 comments

Comments

@emoshaya
Copy link

emoshaya commented Apr 4, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

I have a use case for looking up the latest acr repository tag in Terraform. Azure cli has the following two commands that fetches the list of tags:

az acr repository show-tags and az acr repository show-manifests

New or Affected Resource(s)/Data Source(s)

azurerm_container_registry_repository_tags

Potential Terraform Configuration

data "azurerm_container_registry_repository_tags" "example" {
  name                               = "example-scope-map"
  resource_group_name                = "example-resource-group"
  container_registry_name            = "example-registry"
  container_registry_repository_name = "example-repo"
  sort_by                            = "most_recent"
}



data "azurerm_container_registry_repository_manifests" "example" {
  name                               = "example-scope-map"
  resource_group_name                = "example-resource-group"
  container_registry_name            = "example-registry"
  container_registry_repository_name = "example-repo"
  sort_by                            = "most_recent"
}

References

AWS ECR Equivalent:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants