-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: add depends for cos #74
Conversation
/run pipeline |
/run pipeline |
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.
@jor2 can you update the main.tf so the resource blocks are in the order of the actual dependency tree? It makes it alot easier to follow and review
/run pipeline |
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.
see latest comments
@@ -71,6 +71,25 @@ resource "ibm_iam_authorization_policy" "scc_wp_s2s_access" { | |||
data "ibm_iam_account_settings" "iam_account_settings" { | |||
} | |||
|
|||
resource "ibm_scc_instance_settings" "scc_instance_settings" { |
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.
can you leave a code comment above this resource block to explain what its doing (aka attaching a COS bucket and an event notifications instance)
main.tf
Outdated
@@ -28,7 +28,7 @@ locals { | |||
} | |||
|
|||
resource "ibm_scc_provider_type_instance" "scc_provider_type_instance_instance" { |
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.
can you leave a code comment above this resource block to explain what its doing (aka attaching an SCC Workload Protection instance)
main.tf
Outdated
@@ -28,7 +28,7 @@ locals { | |||
} | |||
|
|||
resource "ibm_scc_provider_type_instance" "scc_provider_type_instance_instance" { | |||
depends_on = [time_sleep.wait_for_authorization_policy] | |||
depends_on = [time_sleep.wait_for_scc_wp_authorization_policy] |
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.
if this depends on the time_sleep which depends on the auth policy then I expect to see those resource blocks above this one in the code. Like I said try to keep the dependency flow the same in the code as the dependncy tree order itself.
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.
This should actually also depend_on ibm_scc_instance_settings.scc_instance_settings
because the COS integration must be done before you can use the SCC instance (which means the ibm_scc_instance_settings
resource block should also be above this in the code)
/run pipeline |
🎉 This PR is included in version 1.4.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Fixing this error:
terraform-ibm-modules/terraform-ibm-scc-da#23
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers