Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit e5b388c

Browse files
chore: remove unwanted files from examples. (#3321)
* chore: remove unwanted file. * docs: auto update terraform docs * chore: fix examples. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e82c327 commit e5b388c

File tree

8 files changed

+26
-77
lines changed

8 files changed

+26
-77
lines changed

Diff for: examples/arm64/main.tf

+10-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ resource "random_id" "random" {
1212
### Hybrid account
1313
################################################################################
1414

15+
module "base" {
16+
source = "../base"
17+
18+
prefix = local.environment
19+
aws_region = local.aws_region
20+
}
21+
22+
1523
module "runners" {
1624
source = "../../"
1725
create_service_linked_role_spot = true
1826
aws_region = local.aws_region
19-
vpc_id = module.vpc.vpc_id
20-
subnet_ids = module.vpc.private_subnets
27+
vpc_id = module.base.vpc.vpc_id
28+
subnet_ids = module.base.vpc.private_subnets
2129

2230
prefix = local.environment
2331
tags = {

Diff for: examples/arm64/vpc.tf

-7
This file was deleted.

Diff for: examples/multi-runner/main.tf

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ locals {
99
resource "random_id" "random" {
1010
byte_length = 20
1111
}
12+
module "base" {
13+
source = "../base"
14+
15+
prefix = local.environment
16+
aws_region = local.aws_region
17+
}
1218

1319
module "multi-runner" {
1420
source = "../../modules/multi-runner"
@@ -37,8 +43,8 @@ module "multi-runner" {
3743
# }
3844
# }
3945
aws_region = local.aws_region
40-
vpc_id = module.vpc.vpc_id
41-
subnet_ids = module.vpc.private_subnets
46+
vpc_id = module.base.vpc.vpc_id
47+
subnet_ids = module.base.vpc.private_subnets
4248
runners_scale_up_lambda_timeout = 60
4349
runners_scale_down_lambda_timeout = 60
4450
prefix = local.environment

Diff for: examples/multi-runner/vpc.tf

-21
This file was deleted.

Diff for: examples/permissions-boundary/main.tf

+8-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ resource "aws_kms_alias" "github" {
2323
name = "alias/github/action-runners"
2424
target_key_id = aws_kms_key.github.key_id
2525
}
26+
module "base" {
27+
source = "../base"
28+
29+
prefix = local.environment
30+
aws_region = local.aws_region
31+
}
2632

2733
module "runners" {
2834
source = "../../"
@@ -31,8 +37,8 @@ module "runners" {
3137
}
3238

3339
aws_region = local.aws_region
34-
vpc_id = module.vpc.vpc_id
35-
subnet_ids = module.vpc.private_subnets
40+
vpc_id = module.base.vpc.vpc_id
41+
subnet_ids = module.base.vpc.private_subnets
3642
kms_key_arn = aws_kms_key.github.key_id
3743

3844
prefix = local.environment

Diff for: examples/permissions-boundary/vpc.tf

-21
This file was deleted.

Diff for: examples/ubuntu/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ terraform apply
4545
|------|--------|---------|
4646
| <a name="module_base"></a> [base](#module\_base) | ../base | n/a |
4747
| <a name="module_runners"></a> [runners](#module\_runners) | ../../ | n/a |
48-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 3.11.2 |
4948

5049
## Resources
5150

Diff for: examples/ubuntu/vpc.tf

-21
This file was deleted.

0 commit comments

Comments
 (0)