|
1 | 1 | # oci-dotnet
|
2 |
| -QuickStart on ASP.Net with simple Terraform scripts and ORM Stack |
| 2 | + |
| 3 | +QuickStart ASP.Net on OCI with Terraform scripts (Includes ORM Stack) |
| 4 | + |
| 5 | +## Deploy Using Oracle Resource Manager |
| 6 | + |
| 7 | +1. Click [![Deploy to Oracle Cloud][magic_button]][magic_dotnet_stack] |
| 8 | + |
| 9 | + If you aren't already signed in, when prompted, enter the tenancy and user credentials. |
| 10 | + |
| 11 | +1. Review and accept the terms and conditions. |
| 12 | + |
| 13 | +1. Select the region where you want to deploy the stack. |
| 14 | + |
| 15 | +1. Follow the on-screen prompts and instructions to create the stack. |
| 16 | + |
| 17 | +1. After creating the stack, click **Terraform Actions**, and select **Plan**. |
| 18 | + |
| 19 | +1. Wait for the job to be completed, and review the plan. |
| 20 | + |
| 21 | + To make any changes, return to the Stack Details page, click **Edit Stack**, and make the required changes. Then, run the **Plan** action again. |
| 22 | + |
| 23 | +1. If no further changes are necessary, return to the Stack Details page, click **Terraform Actions**, and select **Apply**. |
| 24 | + |
| 25 | +## Deploy Using the Terraform CLI |
| 26 | + |
| 27 | +### Clone the Module |
| 28 | + |
| 29 | +Now, you'll want a local copy of this repo. You can make that with the commands: |
| 30 | + |
| 31 | + git clone https://github.com/oracle-quickstart/oci-dotnet.git |
| 32 | + cd oci-dotnet |
| 33 | + ls |
| 34 | + |
| 35 | +### Set Up and Configure Terraform |
| 36 | + |
| 37 | +1. Complete the prerequisites described [here](https://github.com/cloud-partners/oci-prerequisites). |
| 38 | + |
| 39 | +1. Create a `terraform.tfvars` file, and specify the following variables: |
| 40 | + |
| 41 | +``` |
| 42 | +# Authentication |
| 43 | +tenancy_ocid = "<tenancy_ocid>" |
| 44 | +user_ocid = "<user_ocid>" |
| 45 | +fingerprint = "<finger_print>" |
| 46 | +private_key_path = "<pem_private_key_path>" |
| 47 | +
|
| 48 | +# Region |
| 49 | +region = "<oci_region>" |
| 50 | +
|
| 51 | +# Compartment |
| 52 | +compartment_ocid = "<compartment_ocid>" |
| 53 | +
|
| 54 | +```` |
| 55 | +
|
| 56 | +### Create the Resources |
| 57 | +
|
| 58 | +Run the following commands: |
| 59 | +
|
| 60 | + terraform init |
| 61 | + terraform plan |
| 62 | + terraform apply |
| 63 | +
|
| 64 | +### Destroy the Deployment |
| 65 | +
|
| 66 | +When you no longer need the deployment, you can run this command to destroy the resources: |
| 67 | +
|
| 68 | + terraform destroy |
| 69 | +
|
| 70 | +[magic_button]: https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg |
| 71 | +[magic_dotnet_stack]: https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-quickstart/oci-dotnet/releases/latest/download/oci-dotnet-stack-latest.zip |
0 commit comments