Documentation
¶
Index ¶
- Constants
- func CreateNewAccessKey(sess *session.Session, userName string) (*iam.AccessKey, error)
- func CreateSession(region string) (*session.Session, error)
- func CreateSessionWithProfile(region string, profile string) (*session.Session, error)
- func GetValueFromParameterStore(svc *ssm.SSM, keyName string, decrypt bool) (*ssm.GetParameterOutput, error)
- func RetriveKeys(sess *session.Session)
- func SetEnvVariableAWS(accessKey, secretKey, tokenKey string) error
- func StoreKeys(sess *session.Session, accessKey *iam.AccessKey) error
- func UpdateGradleProperties(configKey map[string]string, accessKeyId string, secretKey string) error
- type Receiver
Constants ¶
View Source
const ( MaxIAMUser = 2 Active = "Active" Inactive = "Inactive" TypeSecure = "SecureString" //key for parameter store AccessReaderPathKey = "/bei/developers/s3read/access" SecretReaderPathKey = "/bei/developers/s3read/secret" GradleDir = "/.gradle/" // accessKey and secretKey for map AccessKey = "accessKey" SecretKey = "secretKey" // for storing to env variable AWS_ACCESS_KEY_ID = "AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY = "AWS_SECRET_ACCESS_KEY" AWS_SESSION_TOKEN = "AWS_SESSION_TOKEN" )
Variables ¶
This section is empty.
Functions ¶
func CreateNewAccessKey ¶
Create new access/secret keys following the best practice AWS
func CreateSession ¶
create session specific region
func GetValueFromParameterStore ¶
func GetValueFromParameterStore(svc *ssm.SSM, keyName string, decrypt bool) (*ssm.GetParameterOutput, error)
get the keys from parameter store
func RetriveKeys ¶
func SetEnvVariableAWS ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.