Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/integrations/pub-sub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ resource "google_service_account_iam_member" "custom_auth" {
member = "principalSet://iam.googleapis.com/projects/${data.google_project.project.number}/locations/global/workloadIdentityPools/${google_iam_workload_identity_pool.ingestion_auth_pool.workload_identity_pool_id}/attribute.aws_role/arn:aws:sts::${data.sysdig_secure_trusted_cloud_identity.trusted_identity.aws_account_id}:assumed-role/${data.sysdig_secure_trusted_cloud_identity.trusted_identity.aws_role_name}/${data.sysdig_secure_tenant_external_id.external_id.external_id}"
}

# add some timing for SA and permissions to be completely ready before calling Sysdig Backend, ensure that the validation will pass on first try
resource "time_sleep" "wait_for_apply_google_permissions" {
depends_on = [sysdig_secure_cloud_auth_account_component.gcp_pubsub_datasource]

create_duration = "30s"
}

#-----------------------------------------------------------------------------------------------------------------------------------------
# Call Sysdig Backend to add the pub-sub integration to the Sysdig Cloud Account
#
Expand Down
4 changes: 4 additions & 0 deletions modules/integrations/pub-sub/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ terraform {
source = "hashicorp/random"
version = ">= 3.1"
}
time = {
source = "hashicorp/time"
version = "0.13.1"
}
}
}