Skip to content

Commit

Permalink
working on migrating repos to s3 objects
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 7, 2024
1 parent dae2ca0 commit 1ac292f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
32 changes: 16 additions & 16 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,17 @@ data "aws_codecommit_repository" "goss" {
repository_name = "image-pipeline-goss-testing"
}

data "aws_codecommit_repository" "windows" {
repository_name = "windows-image-pipeline"
}

data "aws_codecommit_repository" "linux" {
repository_name = "linux-image-pipeline"
}

module "main" {
source = "HappyPathway/image-pipeline/aws"
project_name = local.project_name
source_repo_name = local.source_repo
source_repo_branch = "main"
builder_image = "aws/codebuild/standard:7.0"
create_new_repo = false
create_new_role = true
Expand All @@ -111,6 +116,7 @@ module "main" {
type = "PLAINTEXT"
}
]
packer_repo = data.aws_codecommit_repository.linux
ansible_repo = data.aws_codecommit_repository.ansible
goss_repo = data.aws_codecommit_repository.goss
goss_profile = "base-test"
Expand All @@ -123,8 +129,6 @@ module "main" {
module "rhel" {
source = "HappyPathway/image-pipeline/aws"
project_name = "rhel-image-pipeline-demo"
source_repo_name = local.source_repo
source_repo_branch = "main"
builder_image = "aws/codebuild/standard:7.0"
create_new_repo = false
create_new_role = true
Expand All @@ -141,6 +145,7 @@ module "rhel" {
type = "PLAINTEXT"
}
]
packer_repo = data.aws_codecommit_repository.linux
ansible_repo = data.aws_codecommit_repository.ansible
goss_repo = data.aws_codecommit_repository.goss
goss_profile = "rhel-base-test"
Expand All @@ -164,8 +169,6 @@ output "password" {
module "windows" {
source = "HappyPathway/image-pipeline/aws"
project_name = "windows-image-pipeline-demo"
source_repo_name = "windows-image-pipeline"
source_repo_branch = "main"
builder_image = "aws/codebuild/standard:7.0"
create_new_repo = false
create_new_role = true
Expand All @@ -184,6 +187,7 @@ module "windows" {
type = "PLAINTEXT"
}
]
packer_repo = data.aws_codecommit_repository.windows
ansible_repo = data.aws_codecommit_repository.ansible
goss_repo = data.aws_codecommit_repository.goss
goss_profile = "windows-base-test"
Expand Down

0 comments on commit 1ac292f

Please sign in to comment.