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

Commit

Permalink
chore: remove unwanted files from examples. (#3321)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
GuptaNavdeep1983 and github-actions[bot] authored Jun 14, 2023
1 parent e82c327 commit e5b388c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 77 deletions.
12 changes: 10 additions & 2 deletions examples/arm64/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ resource "random_id" "random" {
### Hybrid account
################################################################################

module "base" {
source = "../base"

prefix = local.environment
aws_region = local.aws_region
}


module "runners" {
source = "../../"
create_service_linked_role_spot = true
aws_region = local.aws_region
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
vpc_id = module.base.vpc.vpc_id
subnet_ids = module.base.vpc.private_subnets

prefix = local.environment
tags = {
Expand Down
7 changes: 0 additions & 7 deletions examples/arm64/vpc.tf

This file was deleted.

10 changes: 8 additions & 2 deletions examples/multi-runner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ locals {
resource "random_id" "random" {
byte_length = 20
}
module "base" {
source = "../base"

prefix = local.environment
aws_region = local.aws_region
}

module "multi-runner" {
source = "../../modules/multi-runner"
Expand Down Expand Up @@ -37,8 +43,8 @@ module "multi-runner" {
# }
# }
aws_region = local.aws_region
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
vpc_id = module.base.vpc.vpc_id
subnet_ids = module.base.vpc.private_subnets
runners_scale_up_lambda_timeout = 60
runners_scale_down_lambda_timeout = 60
prefix = local.environment
Expand Down
21 changes: 0 additions & 21 deletions examples/multi-runner/vpc.tf

This file was deleted.

10 changes: 8 additions & 2 deletions examples/permissions-boundary/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ resource "aws_kms_alias" "github" {
name = "alias/github/action-runners"
target_key_id = aws_kms_key.github.key_id
}
module "base" {
source = "../base"

prefix = local.environment
aws_region = local.aws_region
}

module "runners" {
source = "../../"
Expand All @@ -31,8 +37,8 @@ module "runners" {
}

aws_region = local.aws_region
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
vpc_id = module.base.vpc.vpc_id
subnet_ids = module.base.vpc.private_subnets
kms_key_arn = aws_kms_key.github.key_id

prefix = local.environment
Expand Down
21 changes: 0 additions & 21 deletions examples/permissions-boundary/vpc.tf

This file was deleted.

1 change: 0 additions & 1 deletion examples/ubuntu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ terraform apply
|------|--------|---------|
| <a name="module_base"></a> [base](#module\_base) | ../base | n/a |
| <a name="module_runners"></a> [runners](#module\_runners) | ../../ | n/a |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 3.11.2 |

## Resources

Expand Down
21 changes: 0 additions & 21 deletions examples/ubuntu/vpc.tf

This file was deleted.

0 comments on commit e5b388c

Please sign in to comment.