Skip to content

Commit

Permalink
terraform Nothing special required to run on recent Macs now.
Browse files Browse the repository at this point in the history
Jira: IAM-1502
  • Loading branch information
bheesham committed Nov 27, 2024
1 parent 95ecd2e commit d820b21
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions terraform/INFRA.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,3 @@ psql -U dinopark -W oneTimePassword -h XXX.rds.amazonaws.com postgres
alter user dinopark with encrypted password 'XXX';
create database "dino-park-packs";
```

### Setting up Terraform on an ARM Mac

New developers at Mozilla are issued an ARM-based Mac, and so the installation
steps will be different.

To get started, install Terraform (using [asdf](https://asdf-vm.com/)):

```
ASDF_HASHICORP_OVERWRITE_ARCH=amd64 asdf install terraform 0.12.31
```

Next, you'll need to export your credentials:

```
$(aws configure export-credentials --format env --profile iam-admin)
```

(Consider using something like [direnv](https://direnv.net/).)

Next, initialize the working directory:

```
arch -arch x86_64 terraform init
```

And then, finally, when you're ready, generate a plan:

```
arch -arch x86_64 terraform plan -out plan
```

Once you're ready, you can ship your changes using:

```
arch -arch x86_64 terraform apply plan
```

0 comments on commit d820b21

Please sign in to comment.