From 8823b2f3939202ca3875e266330d7bfeacb5775d Mon Sep 17 00:00:00 2001 From: arnol377 Date: Wed, 14 Aug 2024 18:08:18 -0400 Subject: [PATCH] migrating linux pipeline to s3 source --- linux.tf | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/linux.tf b/linux.tf index 68c49c7..4091065 100644 --- a/linux.tf +++ b/linux.tf @@ -11,7 +11,6 @@ module "amazon_linux" { create_new_role = true create_vpc_endpoint = true ssh_user = "ec2-user" - playbook = "hello-world.yaml" terraform_version = "1.8.5" build_permissions_iam_doc = data.aws_iam_policy_document.s3_access build_environment_variables = [ @@ -27,8 +26,17 @@ module "amazon_linux" { name = aws_s3_bucket.assets_bucket.bucket key = "linux-image-pipeline.zip" } - ansible_repo = data.aws_codecommit_repository.ansible - goss_repo = data.aws_codecommit_repository.goss + ansible_source_type = "S3" + ansible_bucket = { + name = aws_s3_bucket.assets_bucket.bucket + key = "image-pipeline-ansible-playbooks.zip" + } + playbook = "hello-world.yaml" + goss_source_type = "S3" + goss_bucket = { + name = aws_s3_bucket.assets_bucket.bucket + key = "image-pipeline-goss-testing.zip" + } goss_profile = "base-test" state = local.state_config vpc_config = local.vpc_config