-
Notifications
You must be signed in to change notification settings - Fork 110
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
Can't provision artifactory_permission_target resources #864
Comments
@carlitos081 Looks like you are using 2 separate You can:
|
Hi @alexhung not sure I follow, I'm using terraform from years and never had to do or heard about alphabetical order for tf file, can you elaborate? If I use same file main.tf and provider.tf it works if in the main.tf I have this content:
but it doesn't if I replace it with this content:
and it works without changing name around? Thanks |
@carlitos081 This is the error message that I was responding to: ╷
│ Error: Invalid provider configuration
│
│ Provider "registry.terraform.io/jfrog/artifactory" requires explicit
│ configuration. Add a provider block to the root module and configure the
│ provider's required arguments as described in the provider documentation.
│
╵
╷
│ Error: Missing URL Configuration
│
│ with provider["registry.terraform.io/jfrog/artifactory"],
│ on <empty> line 0:
│ (source code not available)
│
│ While configuring the provider, the url was not found in the
│ JFROG_URL/ARTIFACTORY_URL environment variables or provider configuration
│ block url attribute.
╵ Is this the only error message you get? I don't know why swapping resources will make it work. |
@carlitos081 Ah, I just noticed that in your provider configuration you use However in your |
Yes! Thanks @alexhung, that was the issue, so silly from my side, Thanks a mill!!!! |
Describe the bug
A clear and concise description of what the bug is.
Requirements for and issue
curl
it at$host/artifactory/api/system/version
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
I have an issue creating
artifactory_permission_target
:This my main.tf:
My providers.tf
Artifactory
EnterpriseX license 7.55.6 rev
terraform jfrog provider
8.9.1
Terraform
v1.5.7
terragrunt
v0.45.5
expected behaviour will be seeing it working like it works if I replace ONLY the content of the main.tf file, proving that the provider configuration works, with the following
result:
The text was updated successfully, but these errors were encountered: