Skip to content
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

Merged
merged 13 commits into from
Mar 16, 2021
Merged

Integrated the changes from dome9 #86

merged 13 commits into from
Mar 16, 2021

Conversation

bcoddens
Copy link
Contributor

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

@bcoddens bcoddens requested review from a team as code owners March 16, 2021 19:28
@bcoddens bcoddens requested review from jamengual and dotCipher and removed request for a team March 16, 2021 19:28
jamengual
jamengual previously approved these changes Mar 16, 2021
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 : []

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

Copy link
Contributor Author

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jamengual jamengual dismissed their stale review March 16, 2021 19:33

wrong click

jamengual
jamengual previously approved these changes Mar 16, 2021
main.tf Outdated
@@ -367,6 +367,22 @@ resource "aws_codebuild_project" "default" {
}
}

dynamic "secondary_sources" {
for_each = var.secondary_sources ? [""] : []

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

jamengual
jamengual previously approved these changes Mar 16, 2021
@jamengual
Copy link

/test all

@jamengual
Copy link

/test all

@jamengual
Copy link

/test all

@jamengual jamengual merged commit 1c61c19 into cloudposse:master Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants