-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,71 @@ | ||
# oci-dotnet | ||
QuickStart on ASP.Net with simple Terraform scripts and ORM Stack | ||
|
||
QuickStart ASP.Net on OCI with Terraform scripts (Includes ORM Stack) | ||
|
||
## Deploy Using Oracle Resource Manager | ||
|
||
1. Click [![Deploy to Oracle Cloud][magic_button]][magic_dotnet_stack] | ||
|
||
If you aren't already signed in, when prompted, enter the tenancy and user credentials. | ||
|
||
1. Review and accept the terms and conditions. | ||
|
||
1. Select the region where you want to deploy the stack. | ||
|
||
1. Follow the on-screen prompts and instructions to create the stack. | ||
|
||
1. After creating the stack, click **Terraform Actions**, and select **Plan**. | ||
|
||
1. Wait for the job to be completed, and review the plan. | ||
|
||
To make any changes, return to the Stack Details page, click **Edit Stack**, and make the required changes. Then, run the **Plan** action again. | ||
|
||
1. If no further changes are necessary, return to the Stack Details page, click **Terraform Actions**, and select **Apply**. | ||
|
||
## Deploy Using the Terraform CLI | ||
|
||
### Clone the Module | ||
|
||
Now, you'll want a local copy of this repo. You can make that with the commands: | ||
|
||
git clone https://github.com/oracle-quickstart/oci-dotnet.git | ||
cd oci-dotnet | ||
ls | ||
|
||
### Set Up and Configure Terraform | ||
|
||
1. Complete the prerequisites described [here](https://github.com/cloud-partners/oci-prerequisites). | ||
|
||
1. Create a `terraform.tfvars` file, and specify the following variables: | ||
|
||
``` | ||
# Authentication | ||
tenancy_ocid = "<tenancy_ocid>" | ||
user_ocid = "<user_ocid>" | ||
fingerprint = "<finger_print>" | ||
private_key_path = "<pem_private_key_path>" | ||
# Region | ||
region = "<oci_region>" | ||
# Compartment | ||
compartment_ocid = "<compartment_ocid>" | ||
```` | ||
### Create the Resources | ||
Run the following commands: | ||
terraform init | ||
terraform plan | ||
terraform apply | ||
### Destroy the Deployment | ||
When you no longer need the deployment, you can run this command to destroy the resources: | ||
terraform destroy | ||
[magic_button]: https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg | ||
[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 |