Documentation ¶
Overview ¶
Package configurator allows to create configuration file main.yaml.
Index ¶
- Variables
- func AppendStringToFile(path, text string) error
- func CreateAWSConfigFile(myLogger logger.LoggerInt, profile string, region string)
- func CreateAWSCredentialsFile(ctx *context.Context, profile string)
- func CreateMainYaml(myLogger logger.LoggerInt, myProfile string, myRegion string) configuration.Configuration
- func CreateRequiredFilesInConfigureMode(ctx *context.Context)
- func GetRegionAndProfile(myLogger logger.LoggerInt) (string, string)
- func SetRegions(myLogger logger.LoggerInt) (region string, err bool)
- func ShowRegions(myLogger logger.LoggerInt)
Constants ¶
This section is empty.
Variables ¶
var Regions = getAllRegions()
List of available regions.
var ResourceSpecificationURL = map[string]string{
"us-east-2": "https://dnwj8swjjbsbt.cloudfront.net",
"us-east-1": "https://d1uauaxba7bl26.cloudfront.net",
"us-west-1": "https://d68hl49wbnanq.cloudfront.net",
"us-west-2": "https://d201a2mn26r7lk.cloudfront.net",
"ap-south-1": "https://d2senuesg1djtx.cloudfront.net",
"ap-northeast-2": "https://d1ane3fvebulky.cloudfront.net",
"ap-southeast-1": "https://doigdx0kgq9el.cloudfront.net",
"ap-southeast-2": "https://d2stg8d246z9di.cloudfront.net",
"ap-northeast-1": "https://d33vqc0rt9ld30.cloudfront.net",
"ca-central-1": "https://d2s8ygphhesbe7.cloudfront.net",
"eu-central-1": "https://d1mta8qj7i28i2.cloudfront.net",
"eu-west-1": "https://d3teyb21fexa9r.cloudfront.net",
"eu-west-2": "https://d1742qcu2c1ncx.cloudfront.net",
"eu-west-3": "https://d2d0mfegowb3wk.cloudfront.net",
"sa-east-1": "https://d3c9jyj3w509b0.cloudfront.net",
}
ResourceSpecificationURL contains links to Resource Specification for all regions.
Functions ¶
func AppendStringToFile ¶
func CreateAWSConfigFile ¶
CreateAWSConfigFile creates .aws/config file based on information from user. The file contains profile name, region and type of output.
func CreateAWSCredentialsFile ¶
CreateAWSCredentialsFile creates .aws/credentials file based on information from user. The file contains access key and MFA serial.
func CreateMainYaml ¶
func CreateMainYaml(myLogger logger.LoggerInt, myProfile string, myRegion string) configuration.Configuration
CreateMainYaml creates new configuration file.
func CreateRequiredFilesInConfigureMode ¶
CreateRequiredFilesInConfigureMode creates main.yaml and .aws/credentials in configure mode.
func GetRegionAndProfile ¶
GetRegionAndProfile gets region and profile from user.
func SetRegions ¶
Choosing one region.
Types ¶
This section is empty.