Documentation
¶
Index ¶
- func CreateIAMRoleForPolicy(ctx context.Context, accountID string, iamClient *iam.Client, name string, ...)
- func CreateS3Bucket(ctx context.Context, s3Client *s3.Client, name string)
- func DownloadS3BucketContents(ctx context.Context, s3Client *s3.Client, bucketName string, gzipDecode bool)
- type PolicyDocument
- type PolicyStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIAMRoleForPolicy ¶
func CreateIAMRoleForPolicy(ctx context.Context, accountID string, iamClient *iam.Client, name string, policyDocument, assumePolicyDocument PolicyDocument, )
CreateIAMRoleForPolicy creates an IAM role with the given IAM policy. It also links an IAM trust policy for the IAM role, so it can be assumed by the nodes of the provisioned Kubernetes cluster.
func CreateS3Bucket ¶
Creates S3 Bucket.
func DownloadS3BucketContents ¶
func DownloadS3BucketContents(ctx context.Context, s3Client *s3.Client, bucketName string, gzipDecode bool, )
Downloads the contents of the given S3 bucket locally. If the contents are gZip encoded, then you can choose to gZip decode them after download. NOTE : The download path is decided by utils.GetDownloadedStorageBucketContentsDir( ).
Types ¶
type PolicyDocument ¶
type PolicyDocument struct { Version string `json:"Version"` Statement []PolicyStatement `json:"Statement"` }
PolicyDocument defines a policy document as a Go struct that can be serialized to JSON.
Click to show internal directories.
Click to hide internal directories.