Skip to content

Commit

Permalink
Merge pull request #8 from SPHTech-Platform/bugfix/codebuild-addition…
Browse files Browse the repository at this point in the history
…al-iam

Additional IAM support for codebuild
  • Loading branch information
jmonte-sph authored Feb 3, 2023
2 parents 952154d + 5df171b commit e84b473
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
push:
branches:
- main

permissions:
actions: read
checks: read
contents: read
pull-requests: read

jobs:
ci:
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@main
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Terraform module that creates the Codepipeline with source(codestar connection)

| Name | Source | Version |
|------|--------|---------|
| <a name="module_codebuild"></a> [codebuild](#module\_codebuild) | github.com/SPHTech-Platform/terraform-aws-codebuild | n/a |
| <a name="module_codebuild"></a> [codebuild](#module\_codebuild) | SPHTech-Platform/codebuild/aws | ~> 1.1.1 |

## Resources

Expand Down
5 changes: 3 additions & 2 deletions codebuild.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module "codebuild" {
source = "github.com/SPHTech-Platform/terraform-aws-codebuild"
source = "SPHTech-Platform/codebuild/aws"
version = "~> 1.1.1"

name = var.codebuild_name
description = var.codebuild_description
build_image = "aws/codebuild/standard:5.0"
buildspec = "./buildspec.yml"
artifacts_bucket_name = var.artifacts_bucket_name

additional_iam = var.codebuild_additional_iam
artifacts = {
type = "CODEPIPELINE"
}
Expand Down

0 comments on commit e84b473

Please sign in to comment.