Forum Stats

  • 3,769,803 Users
  • 2,253,023 Discussions
  • 7,875,210 Comments

Discussions

The "Deploy to Oracle Cloud" button results in 404 (File not found)

User_KN1IX
User_KN1IX Member Posts: 5 Green Ribbon
edited Oct 2, 2021 7:03PM in Oracle Linux

Hello,

This is to do with the creation of a cloud deployment stack using Terraform. The issue is as follows.

  • I have uploaded my Terraform zip file to an Oracle bucket.
  • I then create a "Deploy to Oracle Cloud" HTML button.
  • I use the instructions provided here -> https://docs.oracle.com/en-us/iaas/Content/ResourceManager/Tasks/deploybutton.htm
  • I have confirmed the file is publicly downloadable i.e. "pre-authenticated".
  • Although clicking the button results in a "File not found" 404 error.
  • The link is formatted as follows. I have substituted the hashes with xx and yy.

<a href="https://cloud.oracle.com/resourcemanager/stacks/create&amp;zipUrl=https://objectstorage.ap-sydney-1.oraclecloud.com/p/xx/n/yy/b/deploy-bucket/o/my-oci.zip" target="_blank"><img src="https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg" alt="Deploy to Oracle Cloud"></a>

The error is as follows.

HTTP ERROR 404 Not Found

URI:/resourcemanager/stacks/create&zipUrl=https:/objectstorage.ap-sydney-1.oraclecloud.com/p/xx/n/yy/b/deploy-bucket/o/my-oci.zip STATUS:404MESSAGE:Not FoundSERVLET:jersey

Thanks

Tagged:

Best Answer

  • Adao Junior-Oracle
    Adao Junior-Oracle Member Posts: 1 Employee
    Accepted Answer

    @User_KN1IX Your button code should use ? instead of & after the /create before the zipUrl.

    Something like:

    <a href="https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://objectstorage.ap-sydney-1.oraclecloud.com/p/xx/n/yy/b/deploy-bucket/o/my-oci.zip" target="_blank"><img src="https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg" alt="Deploy to Oracle Cloud"></a>
    


Answers