Documentation
¶
Index ¶
- Variables
- func DataAwsAssumeRolePolicy() common.Resource
- func DataAwsBucketPolicy() common.Resource
- func DataAwsCrossaccountPolicy() common.Resource
- func DataAwsUnityCatalogAssumeRolePolicy() common.Resource
- func DataAwsUnityCatalogPolicy() common.Resource
- func DataSourceInstanceProfiles() common.Resource
- func ResourceGroupInstanceProfile() common.Resource
- func ResourceInstanceProfile() common.Resource
- func ResourceServicePrincipalRole() common.Resource
- func ResourceUserInstanceProfile() common.Resource
- func ResourceUserRole() common.Resource
- func ValidArn(v any, c cty.Path) diag.Diagnostics
- type InstanceProfileInfo
- type InstanceProfileList
- type InstanceProfilesAPI
- func (a InstanceProfilesAPI) Create(ipi InstanceProfileInfo) error
- func (a InstanceProfilesAPI) Delete(instanceProfileARN string) error
- func (a InstanceProfilesAPI) IsRegistered(arn string) bool
- func (a InstanceProfilesAPI) List() ([]InstanceProfileInfo, error)
- func (a InstanceProfilesAPI) Read(instanceProfileARN string) (result InstanceProfileInfo, err error)
- func (a InstanceProfilesAPI) Synchronized(arn string, testCallback func() bool)
- func (a InstanceProfilesAPI) Update(ipi InstanceProfileInfo) error
Constants ¶
This section is empty.
Variables ¶
var AwsBucketNameRegex = regexp.MustCompile(`^[0-9a-z][-0-9a-z\.]{1,61}[0-9a-z]$`)
var AwsBucketNameRegexError = "must contain only alphanumeric, dot, and hyphen characters"
var AwsConfig = map[string]map[string]string{
"aws": {
"accountId": "414351767826",
"awsNamespace": "aws",
"logDeliveryIamArn": "arn:aws:iam::414351767826:role/SaasUsageDeliveryRole-prod-IAMRole-3PLHICCRR1TK",
"unityCatalogueIamArn": "arn:aws:iam::414351767826:role/unity-catalog-prod-UCMasterRole-14S5ZJVKOTYTL",
},
"aws-us-gov": {
"accountId": "044793339203",
"awsNamespace": "aws-us-gov",
"logDeliveryIamArn": "arn:aws-us-gov:iam::044793339203:role/SaasUsageDeliveryRole-prod-aws-gov-IAMRole-L4QM0RCHYQ1G",
"unityCatalogueIamArn": "arn:aws-us-gov:iam::044793339203:role/unity-catalog-prod-UCMasterRole-1QRFA8SGY15OJ",
},
"aws-us-gov-dod": {
"accountId": "170661010020",
"awsNamespace": "aws-us-gov",
"logDeliveryIamArn": "arn:aws-us-gov:iam::170661010020:role/SaasUsageDeliveryRole-prod-aws-gov-dod-IAMRole-1DMEHBYR8VC5P",
"unityCatalogueIamArn": "arn:aws-us-gov:iam::170661010020:role/unity-catalog-prod-UCMasterRole-1DI6DL6ZP26AS",
},
}
var AwsPartitions = []string{"aws", "aws-us-gov", "aws-us-gov-dod"}
var AwsPartitionsValidationError = "aws_partition must be either 'aws' or 'aws-us-gov' or 'aws-us-gov-dod'"
Functions ¶
func DataAwsAssumeRolePolicy ¶
DataAwsAssumeRolePolicy ...
func DataAwsCrossaccountPolicy ¶
DataAwsCrossaccountPolicy defines the cross-account policy
func DataAwsUnityCatalogAssumeRolePolicy ¶ added in v1.47.0
func DataAwsUnityCatalogPolicy ¶ added in v1.36.2
func DataSourceInstanceProfiles ¶ added in v1.31.0
func ResourceGroupInstanceProfile ¶
ResourceGroupInstanceProfile defines group role resource
func ResourceInstanceProfile ¶
ResourceInstanceProfile manages Instance Profile ARN binding
func ResourceServicePrincipalRole ¶
ResourceServicePrincipalRole binds service principal and instance profile
func ResourceUserInstanceProfile ¶
ResourceUserInstanceProfile binds user and instance profile
func ResourceUserRole ¶
Types ¶
type InstanceProfileInfo ¶
type InstanceProfileInfo struct {
InstanceProfileArn string `json:"instance_profile_arn"`
IamRoleArn string `json:"iam_role_arn,omitempty"`
IsMetaInstanceProfile bool `json:"is_meta_instance_profile,omitempty"`
SkipValidation bool `json:"skip_validation,omitempty" tf:"computed"`
}
InstanceProfileInfo contains the ARN for aws instance profiles
type InstanceProfileList ¶
type InstanceProfileList struct {
InstanceProfiles []InstanceProfileInfo `json:"instance_profiles,omitempty"`
}
InstanceProfileList ...
type InstanceProfilesAPI ¶
type InstanceProfilesAPI struct {
// contains filtered or unexported fields
}
InstanceProfilesAPI exposes the instance profiles api on the AWS deployment of Databricks
func NewInstanceProfilesAPI ¶
func NewInstanceProfilesAPI(ctx context.Context, m any) InstanceProfilesAPI
NewInstanceProfilesAPI creates InstanceProfilesAPI instance from provider meta
func (InstanceProfilesAPI) Create ¶
func (a InstanceProfilesAPI) Create(ipi InstanceProfileInfo) error
Create creates an instance profile record on Databricks
func (InstanceProfilesAPI) Delete ¶
func (a InstanceProfilesAPI) Delete(instanceProfileARN string) error
Delete deletes the instance profile given an instance profile arn
func (InstanceProfilesAPI) IsRegistered ¶
func (a InstanceProfilesAPI) IsRegistered(arn string) bool
IsRegistered checks if instance profile exists
func (InstanceProfilesAPI) List ¶
func (a InstanceProfilesAPI) List() ([]InstanceProfileInfo, error)
List lists all the instance profiles in the workspace
func (InstanceProfilesAPI) Read ¶
func (a InstanceProfilesAPI) Read(instanceProfileARN string) (result InstanceProfileInfo, err error)
Read returns the ARN back if it exists on the Databricks workspace
func (InstanceProfilesAPI) Synchronized ¶
func (a InstanceProfilesAPI) Synchronized(arn string, testCallback func() bool)
Synchronized test helper for working with only single instance profile
func (InstanceProfilesAPI) Update ¶ added in v1.9.1
func (a InstanceProfilesAPI) Update(ipi InstanceProfileInfo) error
Update updates the IAM role ARN of an existing instance profile
Source Files
¶
- constants.go
- data_aws_assume_role_policy.go
- data_aws_bucket_policy.go
- data_aws_crossaccount_policy.go
- data_aws_unity_catalog_assume_role_policy.go
- data_aws_unity_catalog_policy.go
- data_instance_profiles.go
- resource_group_instance_profile.go
- resource_instance_profile.go
- resource_service_principal_role.go
- resource_user_instance_profile.go
- resource_user_role.go