Coder Social home page Coder Social logo

rhubarbsin / terraform-oci-free-compute-maximal-example Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 7.0 8 KB

Example of Terraform configuration for maximal compute resources on OCI's Free Tier

License: MIT License

HCL 100.00%
iaas terraform oci oracle oracle-cloud oracle-cloud-infrastructure orchestration iac iac-terraform

terraform-oci-free-compute-maximal-example's Introduction

terraform-oci-free-compute-maximal-example

What it is

A Terraform configuration for compute resources on the Free Tier of Oracle Cloud Infrastructure.

What it does

Deploys a maximal set of resources to run compute instances on the OCI Free Tier.

How to use it

For simplicity—to avoid the need to install and configure Terraform and the OCI CLI—this configuration is designed for deployment as a stack in the OCI Resource Manager.

  1. Download the repository as a ZIP file: on the repository’s GitHub page, select Download ZIP from the Code menu on the upper right.
  2. Log into the Oracle Cloud Infrastructure Console.
  3. Go to the Resource Manager: from the hamburger menu on the upper left, find Developer ServicesResource Manager and select Stacks.
  4. Click on the Create Stack button, select .zip file under Stack Configuration and select the file via the Browse link.
  5. Click on the Next button and provide an SSH public key.
  6. Click Next again and then Create.
  7. Click on the Plan button and start the plan job by clicking Plan again.
  8. After the plan job completes, from the Resource Manager » Stacks » Stack Details » Job Details page go to Resource Manager » Stacks » Stack Details.
  9. Click on the Apply button and start the apply job by clicking Apply again.
  10. After the apply job completes, from the hamburger menu find ComputeCompute and select Instances. Select the newly created compartment (named OCI-Free-Compute-Maximal by default) from the Compartment menu.
  11. Information for connecting to the instances with SSH can be found by selecting an instance and viewing the details under Instance access on the Instance information tab.
  12. To destroy the resources, navigate back to Resource Manager » Stacks » Stack Details and click on the Destroy button and click Destroy again.
  13. To delete the stack, after the destroy job completes, from the Resource Manager » Stacks » Stack Details » Job Details page go to Resource Manager » Stacks » Stack Details. From the More Actions menu choose Delete Stack and then Delete.

Details

  • The resources deployed include the following:
    • One (1) Compartment
    • One (1) Virtual Cloud Network
    • One (1) Internet Gateway
    • One (1) Subnet
    • One (1) Network Security Group
    • Two (2) AMD Micro instances running the latest available Ubuntu distribution with the following specifications:
      • 1 OCPU
      • 1 GiB of memory
      • 50 GiB of storage
      • 1 ephemeral public IP address
    • One (1) AMD Flex instance running the latest Oracle Linux distribution with the following specifications:
      • 4 OCPUs
      • 24 GiB of memory
      • 100 GiB of storage
      • 1 reserved public IP address
    • Three (3) volume backup policies that will create a backup of each boot volume on a daily basis and retain the backup for one day (due to the limitation of five volume backups)
  • On the Ubuntu instances, Apparmor is removed by cloud-init.
  • On the Oracle Linux instance, a kernel boot argument is added to disable loading of SELinux, but because cloud-init is configured not to execute its power-state-change module, that instance must be rebooted for the change to take effect.
  • The default security list that is explicitly associated with the subnet allows inbound traffic to ports 22, 80, and 443 from any origin and all outbound traffic to any destination.
  • The network security group associated with the instances’ VNICs allows inbound ICMP echo (i.e. ping) traffic from any origin and all outbound traffic to any destination.

terraform-oci-free-compute-maximal-example's People

Contributors

rhubarbsin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.