Commit 4f8f1ad
authored
feat(gha): oidc aws credentials if AWS provider is used (#29)
GitHub Actions conditionally assume into the `masterpoint-testing` AWS
account for native Terraform tests, ONLY if the AWS provider is used.
Some of our modules, for example the Spacelift modules like
terraform-spacelift-automation, only uses the Spacelift provider so
there is no need to assume into the AWS role.
But others such as Tailscale, in order to perform tests, AWS credentials
are needed, even for unit tests (TF plans).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Updated workflow to automatically detect AWS provider usage and
configure AWS credentials as needed during testing.
- **New Features**
- Added AWS provider to the Terraform configuration, enabling AWS
resource management.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 1533346 commit 4f8f1ad
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
44 | 68 | | |
45 | 69 | | |
0 commit comments