Skip to content

Repository contains terraform scripts to configure my (Oracle Cloud Infrastructure) OCI free tier.

Notifications You must be signed in to change notification settings

pocelka/oci-configuration

Repository files navigation

oci-configuration

Repository contains terraform (TF) scripts to configure my (Oracle Cloud Infrastructure) OCI free tier.

This is also TF learning repository with TF cloud as state file storage.

Flow

Configuration

Currently I'm running TF commands locally while I assume that TF cloud will be used to store state file. To make this work I need to first setup some variables for local testing. Before first execution remove .sample from file names in this repository and set variables in env.sh and oci.auto.tfvars.

Local Execution

# tf is an alias for terraform

# Initialize connection to tf cloud.
. ./env.sh

# Initialize tf repository and choose proper workspace.
tf init

# Run tf commands.
tf [command]

When using within CI/CD flow (i.e. github actions), variables are set in Terraform Cloud account.

About

Repository contains terraform scripts to configure my (Oracle Cloud Infrastructure) OCI free tier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published