0% found this document useful (0 votes)
115 views2 pages

Practice: Create A Resource Manager Stack

Uploaded by

Damisa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views2 pages

Practice: Create A Resource Manager Stack

Uploaded by

Damisa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Practice: Create a Resource Manager Stack

Try this hands-on lab with the Oracle Cloud Free Tier. If you do not have a free
account, click here to get one.

Overview
In this practice, you create resource manager stack.

A Stack represents definitions for a collection of OCI resources within a specific compartment.
With this in mind, we're going to configure a new stack in the compartment of your choice and
name it "HA Load Balanced Simple Web App". As the stack's name suggests, its configuration
files define the load balancing, networking, and compute resources to deploy the target
architecture plus an HTTP server.

Tasks
1. Log into your Oracle Cloud Free Tier Account
2. Terminate any existing compute instances and then continue with this practice.
3. In the OCI Console, navigate to Menu > Developer Services > click Stacks.
4. Click Create Stack.
5. Select My Configuration, choose the .ZIP FILE button, click Browse link and select the
terraform configuration zip file orm-lbass-demo.zip. Click Select.
6. Name: HA Load Balanced Simple Web App
7. Description: Provisions a primary load balancer and a failover load balancer into public
subnets distributing load across two compute instances hosting a simple web app
application
8. Create in Compartment: Select an existing compartment.
1. Terraform Version: Select 0.14.x
2. Click Next.
3. Configure Variables: Configure the variables for the infrastructure resources that this
stack will create when you run the apply job for this execution plan.
Select a Flex Load Balancer with Minimum and Maximum Bandwidth: 10Mbps for
both minimum and maximum bandwidth

Select Compute Shape: VM.Standard.E2.1.Micro

Select Availability Domain: Pick one Availability Domain

SSH Key Configuration: Upload the SSH key created earlier

Copyright © 2021, Oracle and/or its affiliates.

Oracle Cloud Infrastructure Foundations 1


4. Virtual Cloud Network Configuration:
Enter your VCN Name: vcn01

Enter your CIDR Block: 10.0.0.0/16

Enter your Subnet Name: subnet


5. Click Next.
6. Verify your configuration variables.
7. Click Create.
8. Now, execute Jobs: Plan & Apply.
9. Click Plan on the Stack Details Page.
10. Enter name for the plan and click Plan.
11. You will get a Succeeded message on the Plan Job details page.
12. Now go back to the Stacks Details page and click Apply.
13. Provide the name and select the plan created in previous steps and click Apply.
14. Once the Apply action is complete and succeeded, check the resources created.
15. Check the compute instances Web-Server-01 and Web-Server-02 should have been
created and VCN vcn01.
16. If you want to delete the resources, go to the Stacks Details page and click Destroy to
destroy the created resources.

This completes the practice for Resource Manager.

Copyright © 2021, Oracle and/or its affiliates.

2 Oracle Cloud Infrastructure Foundations

You might also like