Skip to content

Commit

Permalink
chore: Reorganize infrastructure dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Nov 15, 2024
1 parent 0006b4d commit 812611f
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/provision.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/id_ed25519_shortlink_via_terra
- `tf_automation_aws_access_key_id`: Access key ID for `terraform-automation` IAM user. Mark as sensitive.
- `tf_automation_aws_secret_access_key`. Secret access key for `terraform-automation` IAM user. Mark as sensitive.

```jsonc
// n8n-shortlink-terraform-automation-policy
Policy: `n8n-shortlink-terraform-automation-policy`

```json
{
"Version": "2012-10-17",
"Statement": [
Expand Down Expand Up @@ -66,10 +67,12 @@ ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/id_ed25519_shortlink_via_terra
2. Initialize Terraform:

```sh
cd infra/provision
cd infrastructure/01-provision
terraform init
```

This will create an untracked `.terraform` dir, which caches provider plugins and modules; this dir also contains `terraform.tfstate` and `environment` files to record, respectively, the remote state backend configuration and workspace tracking in HCP Terraform. The state itself is stored remotely in the HCP Terraform workspace. This operation will also create a version-controlled `.terraform.lock.hcl` file, which records the exact version of provider plugins and modules.

3. Plan and apply:

```sh
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 812611f

Please sign in to comment.