Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorial #79

Merged
merged 9 commits into from
Aug 13, 2018
Merged

tutorial #79

merged 9 commits into from
Aug 13, 2018

Conversation

ryanking
Copy link
Contributor

@ryanking ryanking commented Jul 20, 2018

Going to be working on this awhile, but happy to get feedback as I go.

@ryanking ryanking requested a review from a team as a code owner July 20, 2018 17:51
docs/DESIGN.md Outdated

To that end, one of the significant decisions we made was to have this tool work via code generation. That means that you can always read the code we've generated to understand what's going on (you can even tweak it if you need to temporarily work around a limitation).

This tranparency should make it easier to try out fogg– you can always see the code for yourself and if you eve decide to stop using it, you already have a working repository.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eve - even

docs/TUTORIAL.md Outdated

This tutorial will walk you through using fogg to create a new infrastructure repository.

Image that you are a company named Acme Corporation and want to deploy staging and production versions of your website where each one consists of a single server (let's keep it simple).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imagine

docs/TUTORIAL.md Outdated
Terraform depends on working from the root of a git repository, though it doesn't need to be pushed anywhere, so `git init` is enough for now. After this, your directory should look like this–

```bash
$ tree .
Copy link
Contributor

@edulop91 edulop91 Jul 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tree -a -L 1 maybe to see the .git

docs/TUTORIAL.md Outdated

`git init`

Terraform depends on working from the root of a git repository, though it doesn't need to be pushed anywhere, so `git init` is enough for now. After this, your directory should look like this–
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TerraformFogg

"infra_s3_bucket": "acme-infra",
"owner": "[email protected]",
"project": "acme",
"shared_infra_version": "0.10.0",
Copy link
Contributor

@edulop91 edulop91 Jul 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reference to shared-infra might be confusing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I need to remove that still

docs/TUTORIAL.md Outdated
Fogg organizes tf code into `global`, `accounts`, `envs` and `components`.

* `global` - things are trying global across all your infrastructure. A good example is a Route53 zone, to which you want to add recrords from everywhere in your infra.
* `accounts` - things that are relavant at the account level (aws here) - most aws iam stuff goes here. Note that we make it easy to have multiple accounts which configs for each in `terraform/accounts/account-name`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with configs for each

docs/TUTORIAL.md Outdated
},
"accounts": {},
"envs": {
"staging": {},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing comma

docs/TUTORIAL.md Outdated
"accounts": {},
"envs": {
"staging": {},
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing comma

@ryanking ryanking self-assigned this Jul 24, 2018
@ryanking
Copy link
Contributor Author

➤ Ryan King commented:

blocked on getting vpc module to cztack

@ryanking ryanking force-pushed the ryanking/tutorial branch from 0180417 to 12621d5 Compare August 1, 2018 21:12
@ryanking ryanking changed the title [wip] tutorial tutorial Aug 13, 2018
7 directories, 27 files
```

Note that since we didn't specify a module_source here, the main.tf file in the database component is empty, Fogg is just creating the scaffoling, not any infrastructure for the database. You can then edit that main.tf file to create the infrastructure you want in that component.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/scaffoling/scaffolding/

@ryanking ryanking merged commit 0ea5952 into master Aug 13, 2018
@ryanking ryanking deleted the ryanking/tutorial branch August 16, 2018 16:35
@vincenthsh vincenthsh mentioned this pull request Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants