https://github.com/craigdoescode/portfolio-terraform
Infrastructure for portfolio
https://github.com/craigdoescode/portfolio-terraform
Last synced: 12 months ago
JSON representation
Infrastructure for portfolio
- Host: GitHub
- URL: https://github.com/craigdoescode/portfolio-terraform
- Owner: CraigDoesCode
- License: mpl-2.0
- Created: 2023-10-06T20:40:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T20:42:24.000Z (over 2 years ago)
- Last Synced: 2025-02-08T19:45:24.799Z (over 1 year ago)
- Language: Shell
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TFC Getting Started
In this repo, you'll find a quick and easy path to get started using [Terraform Cloud](https://app.terraform.io/) with the [Terraform CLI](https://github.com/hashicorp/terraform).
## What's here?
This repo contains two main things:
1. An example Terraform configuration which provisions some mock infrastructure to a fictitious cloud provider called "Fake Web Services" using the [`fakewebservices`](https://registry.terraform.io/providers/hashicorp/fakewebservices/latest) provider.
1. A [script](./scripts/setup.sh) which automatically handles all the setup required to start using Terraform with Terraform Cloud.
## Requirements
- Terraform 0.14 or higher
- The ability to run a bash script in your terminal
- [`sed`](https://www.gnu.org/software/sed/)
- [`curl`](https://curl.se/)
- [`jq`](https://stedolan.github.io/jq/)
## Usage
### 1. Log in to Terraform Cloud via the CLI
Run `terraform login` and follow the prompts to get an API token for Terraform to use. If you don't have a Terraform Cloud account, you can create one during this step.
### 2. Clone this repo
```sh
git clone https://github.com/hashicorp/tfc-getting-started.git
cd tfc-getting-started
```
### 3. Run the setup script and follow the prompts
```
./scripts/setup.sh
```
Welcome to Terraform Cloud!