Documentation ¶
Index ¶
- Constants
- func AvailabilityZones() ([]string, error)
- func CleanUpObsoleteEksClusterStack(clusterName string, profile string, region string) error
- func CreateS3Bucket(bucketName string, profile string, region string) (string, error)
- func EksClusterExists(clusterName string, profile string, region string) (bool, error)
- func EksClusterObsoleteStackExists(clusterName string, profile string, region string) (bool, error)
- func EksctlStackName(clusterName string) string
- func GetAccountIDAndRegion(profile string, region string) (string, string, error)
- func GetContainerRegistryHost() (string, error)
- func GetRegionFromContainerRegistryHost(dockerRegistry string) string
- func LazyCreateRegistry(dockerRegistry string, orgName string, appName string) error
- func NewAwsSession(profileOption string, regionOption string) (*session.Session, error)
- func NewAwsSessionWithoutOptions() (*session.Session, error)
- func RegisterAwsCustomDomain(customDomain string, elbAddress string) error
- func ResolveRegion(profileOption string, regionOption string) (string, error)
- func ResolveRegionWithoutOptions() (string, error)
- func UserHomeDir() string
Constants ¶
const DefaultRegion = "us-west-2"
Variables ¶
This section is empty.
Functions ¶
func AvailabilityZones ¶
func CreateS3Bucket ¶
CreateS3Bucket creates a new S3 bucket in the default region with the given bucket name returning the location string
func EksClusterExists ¶
func EksClusterObsoleteStackExists ¶
* If EKS cluster creation process is interrupted, there will be CloudFormation stack in ROLLBACK_COMPLETE state left. Such dead stack prevents eksctl from creating cluster with the same name. This is common activity then to remove stacks like this and this function performs this action.
func EksctlStackName ¶
func GetAccountIDAndRegion ¶
GetAccountID returns the current account ID
func GetContainerRegistryHost ¶
GetContainerRegistryHost
func LazyCreateRegistry ¶
LazyCreateRegistry lazily creates the ECR registry if it does not already exist
func NewAwsSession ¶
func RegisterAwsCustomDomain ¶
RegisterAwsCustomDomain registers a wildcard ALIAS for the custom domain to point at the given ELB host name
func UserHomeDir ¶
func UserHomeDir() string
UserHomeDir returns the home directory for the user the process is running under. This is a copy of shareddefaults.UserHomeDir in the internal AWS package. We can't user user.Current().HomeDir as we want to override this during testing. :-|
Types ¶
This section is empty.