Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Jun 12, 2024
1 parent 0df09ac commit 2a5713c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 34 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.

27 changes: 9 additions & 18 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ locals {
vpc_id = "vpc-00576a396ec570b94"
}

resource "aws_codecommit_repository" "ansible" {
data "aws_codecommit_repository" "ansible" {
repository_name = "image-pipeline-ansible-roles"
description = "This is the Sample App Repository"
}

data "aws_codecommit_repository" "goss" {
repository_name = "image-pipeline-goss-testing"
}


data "aws_region" "current" {}


Expand All @@ -62,9 +66,11 @@ module "main" {
type = "PLAINTEXT"
}
]
ansible_repo = aws_codecommit_repository.ansible
ansible_repo = data.aws_codecommit_repository.ansible
goss_repo = data.aws_codecommit_repository.goss
vpc_config = {
vpc_id = local.vpc_id
region = "us-gov-west-1"
security_group_ids = [
"sg-0d828d223df9834a6",
aws_security_group.allow_amznlinux_cdn.id
Expand All @@ -75,21 +81,6 @@ module "main" {
}
}


resource "aws_iam_service_specific_credential" "codecommit" {
service_name = "codecommit.amazonaws.com"
user_name = module.main.build_user.name
}

output codecommit_credentials_username {
value = aws_iam_service_specific_credential.codecommit.service_user_name
}

output codecommit_credentials_password {
value = nonsensitive(aws_iam_service_specific_credential.codecommit.service_password)
}


output iam_arn {
value = module.main.iam_arn
}

0 comments on commit 2a5713c

Please sign in to comment.