- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-23-2022 10:42 AM
We're getting a 405 Error "405 not allowed" when running "terraform apply" to invoke a Terraform prismacloud producer. Anyone seen this? This is most likely a simple Terraform syntax error.
Thanks.
Notes:
1) "terraform init", "fmt", and "validate" all return without error
2) vpn disabled, but still no success
3) main.tf references a separate Prisma authentication json file
main.tf:
provider "prismacloud" {
json_config_file = ".prismacloud_auth.json"
}
.prismacloud_auth.json file
{
"url": "app3.prismacloud.io",
"username": "xxxx-user-id",
"password": "yyyy-user-secret",
"protocol": "https"
}
4) This curl command returns valid html from Prisma, with no error
curl -u xxxx-user-id:yyyy-user-secret https://app3.prismacloud.io
5) terraform.log snippet in TRACE mode shows:
2022-06-23T16:14:53.869Z [DEBUG] checking for provisioner in "."
2022-06-23T16:14:53.872Z [DEBUG] checking for provisioner in "/usr/bin"
2022-06-23T16:14:53.872Z [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2022-06-23T16:14:53.872Z [TRACE] backend/local: state manager for workspace "default" will:
- read initial snapshot from terraform.tfstate
- write new snapshots to terraform.tfstate
- create any backup at terraform.tfstate.backup
2022-06-23T16:14:53.872Z [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate
2022-06-23T16:14:53.873Z [TRACE] statemgr.Filesystem: read snapshot with lineage "29bd2382-e9b4-60f0-c2f0-cb5a1f023fd6" serial 1
2022-06-23T16:14:53.874Z [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2022-06-23T16:14:53.874Z [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json
2022-06-23T16:14:53.906Z [DEBUG] GET https://registry.terraform.io/v1/providers/paloaltonetworks/prismacloud/versions
2022-06-23T16:14:53.906Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/paloaltonetworks/prismacloud/versions
2022-06-23T16:14:53.918Z [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers
2022-06-23T16:14:53.918Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/paloaltonetworks/prismacloud v1.2.6 for linux_amd64 at .terraform/providers/registry.terraform.io/paloaltonetworks/prismacloud/1.2.6/linux_amd64
@@@
06-23-2022 10:22 PM - edited 06-23-2022 10:22 PM
This is the section for Prisma Access the Firewall as a Service solution not the Prisma Cloud. Better post this under the correct section.
06-24-2022 07:17 AM
Thanks so much for the quick response. I'll do that.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!