-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Terraform configurations and add Packer pipeline template
- Loading branch information
Your Name
committed
Jun 13, 2025
1 parent
9b299b6
commit 1078814
Showing
27 changed files
with
161 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| // Packer Pipeline Configuration Template | ||
| // Generated by packer-pipeline | ||
|
|
||
| packer_pipeline { | ||
| // Required parameters | ||
| repo_path = "./my-packer-repo" // Path to the local repository to upload | ||
| packer_vars_file = "vars.pkrvars.hcl" // Path to the Packer variables file (.pkrvars.hcl or .json) | ||
| packer_template_file = "template.pkr.hcl" // Relative path within the repo to the Packer template | ||
| s3_bucket = "my-packer-artifacts" // Name of the S3 bucket for artifacts | ||
| assets_bucket = "my-packer-assets" // Name of the S3 bucket containing tool assets | ||
| codebuild_project_name = "packer-pipeline-project" // Name for the CodeBuild project | ||
|
|
||
| // Tool Configuration | ||
| tools = [ | ||
| { | ||
| name = "packer" | ||
| version = "1.9.4" | ||
| zip_path = "packer_1.9.4_linux_amd64.zip" | ||
| binary_name = "packer" | ||
| install_path = "/usr/local/bin" | ||
| } | ||
| ] | ||
|
|
||
| // AWS Account Configuration (Optional) | ||
| account_number = "123456789012" // AWS account number | ||
| partition = "aws-us-gov" // AWS partition (aws or aws-us-gov) | ||
|
|
||
| // Role Management (choose one) | ||
| create_role = True // Enable automatic role creation | ||
| // codebuild_role_arn = "" // OR specify an existing role ARN | ||
|
|
||
| // Region Configuration | ||
| aws_region = "us-gov-west-1" // AWS region | ||
| gov_cloud = True // Use AWS GovCloud partition (auto-detected from region if not set) | ||
|
|
||
| // Optional Configuration | ||
| s3_key_prefix = "packer-builds/" // Prefix for S3 keys | ||
| compute_type = "BUILD_GENERAL1_SMALL" // CodeBuild compute type | ||
| image = "aws/codebuild/amazonlinux2-x86_64-standard:4.0" // CodeBuild image | ||
| buildspec_template = "buildspec.yml.j2" // Buildspec template file | ||
|
|
||
| // Directory Exclusions | ||
| exclude_dirs = ['.git', 'node_modules', 'dist', 'build'] | ||
|
|
||
| // VPC Configuration (Optional) | ||
| vpc_config { | ||
| vpc_id = "vpc-00576a396ec570b94" // VPC ID | ||
| subnet_ids = ['subnet-0b1992a84536c581b'] // List of subnet IDs | ||
| security_group_ids = ['sg-0641c697588b9aa6b'] // List of security group IDs | ||
| } | ||
|
|
||
| // Environment Variables (Optional) | ||
| environment_variables = {'EXAMPLE_VAR': 'value'} | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # import {} | ||
|
|
||
| # module.github-runner.aws_iam_policy.secretsmanager_policy | ||
| # module.github-runner.aws_iam_policy.certs_policy[0] | ||
| # module.github-runner.aws_iam_role.ecs_task_role | ||
| # module.github-runner.aws_iam_role.ecs_task_execution_role | ||
| #import { | ||
| # to = aws_ecs_cluster.github-runner[0] | ||
| # id = "ecs-ghe-runners-us-gov-west-1" | ||
| #} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sct-engineering |
Submodule ecr-clone
added at
8fa185
Submodule github-runner
added at
88edaf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"ecr-clone","Source":"registry.terraform.io/HappyPathway/ecr-clone/aws","Version":"0.0.30","Dir":"/data/terraform/workspaces/arnol377/git/ghe-runner/terraform_data_dirs/csvd/modules/ecr-clone"},{"Key":"github-runner","Source":"registry.terraform.io/HappyPathway/github-runner/ecs","Version":"0.0.92","Dir":"/data/terraform/workspaces/arnol377/git/ghe-runner/terraform_data_dirs/csvd/modules/github-runner"}]} |
1 change: 1 addition & 0 deletions
1
terraform_data_dirs/csvd/providers/registry.terraform.io/hashicorp/aws/5.70.0/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/aws/5.70.0/linux_amd64 |
1 change: 1 addition & 0 deletions
1
terraform_data_dirs/csvd/providers/registry.terraform.io/hashicorp/dns/3.4.2/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/dns/3.4.2/linux_amd64 |
1 change: 1 addition & 0 deletions
1
terraform_data_dirs/csvd/providers/registry.terraform.io/hashicorp/github/6.3.1/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/github/6.3.1/linux_amd64 |
1 change: 1 addition & 0 deletions
1
terraform_data_dirs/csvd/providers/registry.terraform.io/hashicorp/null/3.2.3/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/null/3.2.3/linux_amd64 |
1 change: 1 addition & 0 deletions
1
terraform_data_dirs/csvd/providers/registry.terraform.io/hashicorp/random/3.6.3/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/random/3.6.3/linux_amd64 |
Submodule github-runner
added at
88edaf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"github-runner","Source":"registry.terraform.io/HappyPathway/github-runner/ecs","Version":"0.0.92","Dir":"/data/terraform/workspaces/arnol377/git/ghe-runner/terraform_data_dirs/sct-engineering/modules/github-runner"}]} |
1 change: 1 addition & 0 deletions
1
...ata_dirs/sct-engineering/providers/registry.terraform.io/hashicorp/aws/5.70.0/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/aws/5.70.0/linux_amd64 |
1 change: 1 addition & 0 deletions
1
...data_dirs/sct-engineering/providers/registry.terraform.io/hashicorp/dns/3.4.2/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/dns/3.4.2/linux_amd64 |
1 change: 1 addition & 0 deletions
1
...a_dirs/sct-engineering/providers/registry.terraform.io/hashicorp/github/6.3.1/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/github/6.3.1/linux_amd64 |
1 change: 1 addition & 0 deletions
1
...ta_dirs/sct-engineering/providers/registry.terraform.io/hashicorp/local/2.5.2/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/local/2.5.2/linux_amd64 |
1 change: 1 addition & 0 deletions
1
...ata_dirs/sct-engineering/providers/registry.terraform.io/hashicorp/null/3.2.3/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/null/3.2.3/linux_amd64 |
1 change: 1 addition & 0 deletions
1
...a_dirs/sct-engineering/providers/registry.terraform.io/hashicorp/random/3.6.3/linux_amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /data/terraform/workspaces/arnol377/terraform-plugin-cache/registry.terraform.io/hashicorp/random/3.6.3/linux_amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "GITHUB_OWNER": "CSVD", | ||
| "TF_WORKSPACE_COLOR": 32 | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "GITHUB_OWNER": "SCT-Engineering", | ||
| "TF_WORKSPACE_COLOR": 96 | ||
|
|
||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| namespace = "sct-eng-ghe-runner" | ||
| repo_org = "SCT-Engineering" | ||
| desired_count = 1 | ||
| create_ecs_cluster = false | ||
| image_name = "github-runner" | ||
| image_version = "1.68.0" |