Skip to content

Commit

Permalink
AB#92 feat: Add requireApprovalItems, safeToApplyItems to GlobalConfi…
Browse files Browse the repository at this point in the history
…guration
  • Loading branch information
giovannibaratta committed Nov 26, 2023
1 parent 168c943 commit 4dec128
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/libs/domain/src/configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export interface GlobalConfiguration {
// List of actions that are safe to apply if they are found in the
// plan.
readonly safeToApplyActions?: ReadonlyArray<Action>
// List of resources that always require approval if they are found
readonly requireApprovalItems?: ReadonlyArray<ResourceIdentifier>
// List of resources that are safe to apply if they are found
readonly safeToApplyItems?: ReadonlyArray<ResourceIdentifier>
}

export interface RequireApprovalItem {
Expand Down Expand Up @@ -55,3 +59,8 @@ export function requireApprovalItemToTerraformEntity(
}
}
}

interface ResourceIdentifier {
// Name of the resource assgined by the provider (e.g. google_storage_bucket)
readonly providerType: string
}

0 comments on commit 4dec128

Please sign in to comment.