configurator

package
v0.0.0-...-a4d1c73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package configurator allows to create configuration file main.yaml.

Index

Constants

This section is empty.

Variables

View Source
var Regions = getAllRegions()

List of available regions.

View Source
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 AppendStringToFile(path, text string) error

func CreateAWSConfigFile

func CreateAWSConfigFile(myLogger logger.LoggerInt, profile string, region string)

CreateAWSConfigFile creates .aws/config file based on information from user. The file contains profile name, region and type of output.

func CreateAWSCredentialsFile

func CreateAWSCredentialsFile(ctx *context.Context, profile string)

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

func CreateRequiredFilesInConfigureMode(ctx *context.Context)

CreateRequiredFilesInConfigureMode creates main.yaml and .aws/credentials in configure mode.

func GetRegionAndProfile

func GetRegionAndProfile(myLogger logger.LoggerInt) (string, string)

GetRegionAndProfile gets region and profile from user.

func SetRegions

func SetRegions(myLogger logger.LoggerInt) (region string, err bool)

Choosing one region.

func ShowRegions

func ShowRegions(myLogger logger.LoggerInt)

List of all available regions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL