-
Notifications
You must be signed in to change notification settings - Fork 3
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
Migrate from artifactory_permission_target
to platform_permission
#173
Comments
@xzhangatlassian Can you confirm you have imported the correct resource? The repo name should not be different if it is from the same permission. |
@alexhung yep, I have imported the right resource. If I change my
Terraform plan will not change anything. |
@xzhangatlassian Odd. Which version of Artifactory are you using? Are you using SaaS or self-hosted? What type of repository is this? Local, remote, etc.? I have not seen this behavior in either the old or new API. |
@alexhung I am running artifactory onprem 7.98.7, This only happens to remote to repository (thus the |
@xzhangatlassian Indeed it's remote only. See the doc: https://jfrog.com/help/r/jfrog-artifactory-documentation/remote-repositories. I wonder how the Do you see this |
The rest api response contains the
But not in UI |
@xzhangatlassian Thanks for the info. I'll try to reproduce this in my dev environment. Definitely not something I've seen before. |
@xzhangatlassian Whilst you can't create a permission in the UI for the |
Just reporting that I saw the same issue in our enterprise installation; all the repositories have been managed by the Artifactory terraform provider, so I strongly believe that the suffix has come from this. My approach to the migration was to create new resources for each of the permission targets that I manage, with similar but slightly different names. I then wrote a script to compare the API results for each - that was how I became aware of the As I could not see any difference on the Web UI between the two resources, I went ahead and eventually removed the deprecated resources. This approach worked well - it took two commits, but gave me an opportunity to verify. |
Hi there,
I bumpped artifactory terraform provider from 9.8 to the latest 12.5.1. As a result I am forced to migrate to
platform_permission
. I have a permission likeI ran
terraform import
to import the existing resource into by tf state. However, when I runterraform plan
terraform output saysPlease notice the repo name will change from
doker-hub-cache
todocker-hub
. Is that expected? Should I use the repo keydocker-hub
or the cache repo keydocker-hub-cache
?Cheers,
Chandler
The text was updated successfully, but these errors were encountered: