-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated the changes from dome9 #86
Conversation
main.tf
Outdated
@@ -367,6 +367,23 @@ resource "aws_codebuild_project" "default" { | |||
} | |||
} | |||
|
|||
dynamic "secondary_sources" { | |||
iterator = secondary_source | |||
for_each = length(var.secondary_sources) > 0 ? var.secondary_sources : [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can delete the condition and it will null if secondary sources is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed pushed, is this what you mean ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
main.tf
Outdated
@@ -367,6 +367,22 @@ resource "aws_codebuild_project" "default" { | |||
} | |||
} | |||
|
|||
dynamic "secondary_sources" { | |||
for_each = var.secondary_sources ? [""] : [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just do for_each = var.secondary_sources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
/test all |
/test all |
…rm-aws-codebuild into secondarysource
…rm-aws-codebuild into secondarysource
/test all |
What
Our codebuild environment needs double sources as input to build
Why
We use code that is based on gitlab , gitlab is not supported by codebuild so we need to upload zip files to support our codebuilds. We want to keep the config and source in a different upload.
These changes support using multiple s3 buckets as source
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codebuild_project#secondary_sources
Proceed on pull request: #73