-
Notifications
You must be signed in to change notification settings - Fork 20
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
tutorial #79
Conversation
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. |
There was a problem hiding this comment.
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). |
There was a problem hiding this comment.
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 . |
There was a problem hiding this comment.
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– |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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`. |
There was a problem hiding this comment.
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": {}, |
There was a problem hiding this comment.
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": {}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comma
➤ Ryan King commented: blocked on getting vpc module to cztack |
0180417
to
12621d5
Compare
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/scaffoling/scaffolding/
Going to be working on this awhile, but happy to get feedback as I go.