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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update resource manager stack working-director #765

Open
Pela2silveira opened this issue Apr 17, 2024 · 0 comments
Open

Cannot update resource manager stack working-director #765

Pela2silveira opened this issue Apr 17, 2024 · 0 comments

Comments

@Pela2silveira
Copy link

Hello I have a Stack in Resource Manager, and I can't set working directory for terraform in the UI (there is no option) neither by cli. I have created this using integration with Bitbucket Cloud

oci resource-manager stack list --all --compartment-id ocid1.compartment.oc1..axxxxxx                                                                                                      
{
  "data": [
    {
      "compartment-id": "ocid1.compartment.oc1..axxxxxx   ",
      "defined-tags": {
        "Oracle-Tags": {
          "CreatedBy": "oracleidentitycloudservice/user@tech",
          "CreatedOn": "2024-04-16T18:12:46.800Z"
        }
      },
      "description": "Common Virtual Cloud Network resources for OKE cluster installations.",
      "display-name": "Stack-oke-stg",
      "freeform-tags": {
        "env": "stg"
      },
      "id": "ocid1.ormstack.oc1.sa-saopaulo-1.amaaaaxxxxx",
      "lifecycle-state": "ACTIVE",
      "terraform-version": "1.2.x",
      "time-created": "2024-04-16T18:12:46.883000+00:00"
    }
  ]
}

oci resource-manager stack update --stack-id "ocid1.ormstack.oc1.sa-saopaulo-1.amaaaaaaw2h46uaa46faostvp5p7crknhgzck2ufuqfapsn5kpf7kgx4kwba" --working-directory "terraform"

WARNING: Updates to config-source and custom-terraform-provider and variables and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue? [y/N]: y
ServiceError:
{
    "client_version": "Oracle-PythonSDK/2.121.1, Oracle-PythonCLI/3.37.9",
    "code": "InvalidParameter",
    "logging_tips": "Please run the OCI CLI command using --debug flag to find more debug information.",
    "message": "Parameter 'configSource' is not valid. The origin (type) of configuration source cannot be changed. Select the original configuration source type and try again.",
    "opc-request-id": "0418EED54F754B0D9A8DF62A7C97DA9D/3F11D6ABD9249EF1850BCB58E1FC2799/75FF318AEE01F68B8E0960736D0958A4",
    "operation_name": "update_stack",
    "request_endpoint": "PUT https://resourcemanager.sa-saopaulo-1.oraclecloud.com/20180917/stacks/ocid1.ormstack.oc1.sa-saopaulo-1.amaaaaaawxxxxx",
    "status": 400,
    "target_service": "resource_manager",
    "timestamp": "2024-04-17T19:32:18.444712+00:00",
    "troubleshooting_tips": "See [https://docs.oracle.com/iaas/Content/API/References/apierrors.htm] for more information about resolving this error. If you are unable to resolve this issue, run this CLI command with --debug option and contact Oracle support and provide them the full error message."
}

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

No branches or pull requests

1 participant