Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBasicFields ¶
func ValidateBasicFields(t testing.TB, g GlobalTFVars)
ValidateBasicFields validates if the values for the required field were provided
func ValidateDestroyFlags ¶
func ValidateDestroyFlags(t testing.TB, g GlobalTFVars)
ValidateDestroyFlags checks if the flags to allow the destruction of the infrastructure are enabled
func ValidateDirectories ¶
func ValidateDirectories(g GlobalTFVars) error
ValidateDirectories checks if the required directories exist
Types ¶
type GlobalTFVars ¶
type GlobalTFVars struct { OrgID string `hcl:"org_id"` BillingAccount string `hcl:"billing_account"` GroupOrgAdmins string `hcl:"group_org_admins"` GroupBillingAdmins string `hcl:"group_billing_admins"` BillingDataUsers string `hcl:"billing_data_users"` MonitoringWorkspaceUsers string `hcl:"monitoring_workspace_users"` AuditDataUsers string `hcl:"audit_data_users"` DefaultRegion string `hcl:"default_region"` ParentFolder *string `hcl:"parent_folder"` Domain string `hcl:"domain"` DomainsToAllow []string `hcl:"domains_to_allow"` EssentialContactsDomains []string `hcl:"essential_contacts_domains_to_allow"` PerimeterAdditionalMembers []string `hcl:"perimeter_additional_members"` TargetNameServerAddresses []ServerAddress `hcl:"target_name_server_addresses"` SccNotificationName string `hcl:"scc_notification_name"` ProjectPrefix *string `hcl:"project_prefix"` FolderPrefix *string `hcl:"folder_prefix"` BucketForceDestroy *bool `hcl:"bucket_force_destroy"` AuditLogsTableDeleteContentsOnDestroy *bool `hcl:"audit_logs_table_delete_contents_on_destroy"` LogExportStorageForceDestroy *bool `hcl:"log_export_storage_force_destroy"` EnableHubAndSpoke bool `hcl:"enable_hub_and_spoke"` EnableHubAndSpokeTransitivity bool `hcl:"enable_hub_and_spoke_transitivity"` CreateUniqueTagKey bool `hcl:"create_unique_tag_key"` ProjectsKMSLocation string `hcl:"projects_kms_location"` ProjectsGCSLocation string `hcl:"projects_gcs_location"` CodeCheckoutPath string `hcl:"code_checkout_path"` FoundationCodePath string `hcl:"foundation_code_path"` ValidatorProjectId *string `hcl:"validator_project_id"` }
GlobalTFVars contains all the configuration for the deploy
func ReadGlobalTFVars ¶
func ReadGlobalTFVars(file string) (GlobalTFVars, error)
ReadGlobalTFVars reads the tfvars file that has all the configuration for the deploy
func (GlobalTFVars) CheckString ¶
func (g GlobalTFVars) CheckString(s string)
CheckString checks if any of the string fields in the GlobalTFVars has the given string
func (GlobalTFVars) HasValidatorProj ¶
func (g GlobalTFVars) HasValidatorProj() bool
HasValidatorProj checks if a Validator Project was provided
type ServerAddress ¶
type ServerAddress struct { Ipv4Address string `cty:"ipv4_address"` ForwardingPath string `cty:"forwarding_path"` }
ServerAddress is the element for TargetNameServerAddresses
Click to show internal directories.
Click to hide internal directories.