-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
google_artifact_registry_repository cleanup policy #13824
google_artifact_registry_repository cleanup policy #13824
Comments
Note: There's no settings to enable this in the API: https://cloud.google.com/artifact-registry/docs/reference/rest Not sure how it's available in gcloud, in that case. |
https://cloud.google.com/artifact-registry/docs/repositories/cleanup-policy shows how you can use gcloud to set the cleanup policy. |
I'm not seeing the list-functionality return any results, but this is what the CLI is doing LIST:
{
"name": "projects/[project-name]/locations/[location]/repositories/[repository]",
"format": "DOCKER",
"createTime": "2023-06-08T01:29:45.938615Z",
"updateTime": "2023-06-22T14:27:33.401054Z",
"mode": "STANDARD_REPOSITORY",
"dockerConfig": {}
}
CREATE:
{
"cleanupPolicies": {
"test": {
"action": "Keep",
"id": "test",
"mostRecentVersions": {
"keepCount": 100000
}
}
},
"createTime": "2023-06-08T01:29:45.938615Z",
"dockerConfig": {},
"format": "DOCKER",
"mode": "STANDARD_REPOSITORY",
"name": "projects/[project-name]/locations/[location]/repositories/[repository]",
"updateTime": "2023-06-22T14:14:01.780517Z"
} DELETE
{
"createTime": "2023-06-08T01:29:45.938615Z",
"dockerConfig": {},
"format": "DOCKER",
"mode": "STANDARD_REPOSITORY",
"name": "projects/[project-name]/locations/[location]/repositories/[repository]",
"updateTime": "2023-06-22T14:27:33.401054Z"
} |
Artifact Registry cleanup policies were officially released into preview last week. https://cloud.google.com/artifact-registry/docs/release-notes |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
There is currently no possibility to set cleanup policy for artifact registry through Terraform
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: