Skip to content

Commit 2da16a4

Browse files
committed
chore(init): Configure aws creds
Signed-off-by: Hayden Roszell <hroszell@gmail.com>
0 parents  commit 2da16a4

10 files changed

Lines changed: 522 additions & 0 deletions

File tree

.github/workflows/apply.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Terraform Apply
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
id-token: write
9+
contents: write
10+
11+
jobs:
12+
update:
13+
name: Update
14+
runs-on: ubuntu-latest
15+
environment: prod
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
# Configure aws creds
20+
- uses: aws-actions/configure-aws-credentials@v4

.github/workflows/plan.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Terraform Plan
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
id-token: write
9+
contents: write
10+
11+
jobs:
12+
update:
13+
name: Update
14+
runs-on: ubuntu-latest
15+
environment: prod
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
# Configure aws creds
20+
- uses: aws-actions/configure-aws-credentials@v4
21+

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Bootstrap
2+
3+
1. **Create S3 bucket for Terraform state**
4+
5+
```shell
6+
aws s3api create-bucket \
7+
--bucket m8rmclaren-terraform-state-infra \
8+
--region us-west-1 \
9+
--create-bucket-configuration LocationConstraint=us-west-1
10+
```
11+

environments/prod/.terraform.lock.hcl

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)