Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2018 Changes in this version + func GetPublicIpsOfEc2Instances(t *testing.T, instanceIds []string, awsRegion string) map[string]string + func GetPublicIpsOfEc2InstancesE(t *testing.T, instanceIds []string, awsRegion string) (map[string]string, error) v0.9.0 Apr 29, 2018 Changes in this version + func GetAcmCertificateArnE(t *testing.T, awsRegion string, certDomainName string) (string, error) + func GetInstanceIdsForAsg(t *testing.T, asgName string, awsRegion string) []string + func GetInstanceIdsForAsgE(t *testing.T, asgName string, awsRegion string) ([]string, error) + func GetPublicIpOfEc2Instance(t *testing.T, instanceId string, awsRegion string) string + func GetPublicIpOfEc2InstanceE(t *testing.T, instanceId string, awsRegion string) (string, error) + func NewAcmClientE(t *testing.T, awsRegion string) (*acm.ACM, error) + func NewAsgClient(t *testing.T, region string) *autoscaling.AutoScaling + func NewAsgClientE(t *testing.T, region string) (*autoscaling.AutoScaling, error) + func NewCloudWatchLogsClientE(t *testing.T, region string) (*cloudwatchlogs.CloudWatchLogs, error) + func NewEc2ClientE(t *testing.T, region string) (*ec2.EC2, error) + func NewIamClientE(t *testing.T, region string) (*iam.IAM, error) + func NewKmsClientE(t *testing.T, region string) (*kms.KMS, error) + func NewS3ClientE(t *testing.T, region string) (*s3.S3, error) + func NewSnsClientE(t *testing.T, region string) (*sns.SNS, error) + func NewSqsClientE(t *testing.T, region string) (*sqs.SQS, error) + type IpForEc2InstanceNotFound struct + AwsRegion string + InstanceId string + func (err IpForEc2InstanceNotFound) Error() string v0.8.0 Apr 26, 2018 Changes in this version + const AmazonAccountId + const CanonicalAccountId + const CentOsAccountId + func AssertS3BucketExists(t *testing.T, region string, name string) + func AssertS3BucketExistsE(t *testing.T, region string, name string) error + func CreateAwsCredentials(accessKeyId string, secretAccessKey string) *credentials.Credentials + func CreateAwsCredentialsWithSessionToken(accessKeyId, secretAccessKey, sessionToken string) *credentials.Credentials + func CreateAwsSessionWithCreds(region string, accessKeyId string, secretAccessKey string) (*session.Session, error) + func CreateAwsSessionWithMfa(region string, stsClient *sts.STS, mfaDevice *iam.VirtualMFADevice) (*session.Session, error) + func CreateMfaDevice(t *testing.T, iamClient *iam.IAM, deviceName string) *iam.VirtualMFADevice + func CreateMfaDeviceE(t *testing.T, iamClient *iam.IAM, deviceName string) (*iam.VirtualMFADevice, error) + func CreateRandomQueue(t *testing.T, awsRegion string, prefix string) string + func CreateRandomQueueE(t *testing.T, awsRegion string, prefix string) (string, error) + func CreateS3Bucket(t *testing.T, region string, name string) + func CreateS3BucketE(t *testing.T, region string, name string) error + func CreateSnsTopic(t *testing.T, region string, snsTopicName string) string + func CreateSnsTopicE(t *testing.T, region string, snsTopicName string) (string, error) + func DeleteAmi(t *testing.T, region string, imageId string) + func DeleteAmiE(t *testing.T, region string, imageId string) error + func DeleteEC2KeyPair(t *testing.T, keyPair *Ec2Keypair) + func DeleteEC2KeyPairE(t *testing.T, keyPair *Ec2Keypair) error + func DeleteMessageFromQueue(t *testing.T, awsRegion string, queueUrl string, receipt string) + func DeleteMessageFromQueueE(t *testing.T, awsRegion string, queueUrl string, receipt string) error + func DeleteQueue(t *testing.T, awsRegion string, queueUrl string) + func DeleteQueueE(t *testing.T, awsRegion string, queueUrl string) error + func DeleteS3Bucket(t *testing.T, region string, name string) + func DeleteS3BucketE(t *testing.T, region string, name string) error + func DeleteSNSTopic(t *testing.T, region string, snsTopicArn string) + func DeleteSNSTopicE(t *testing.T, region string, snsTopicArn string) error + func EnableMfaDevice(t *testing.T, iamClient *iam.IAM, mfaDevice *iam.VirtualMFADevice) + func EnableMfaDeviceE(t *testing.T, iamClient *iam.IAM, mfaDevice *iam.VirtualMFADevice) error + func FindS3BucketWithTag(t *testing.T, awsRegion string, key string, value string) string + func FindS3BucketWithTagE(t *testing.T, awsRegion string, key string, value string) (string, error) + func FindVpcName(vpc *ec2.Vpc) string + func GetAccountId(t *testing.T) string + func GetAccountIdE(t *testing.T) (string, error) + func GetAcmCertificateArn(awsRegion string, certDomainName string) (string, error) + func GetAllAwsRegions(t *testing.T) []string + func GetAllAwsRegionsE(t *testing.T) ([]string, error) + func GetAmazonLinuxAmi(t *testing.T, region string) string + func GetAmazonLinuxAmiE(t *testing.T, region string) (string, error) + func GetAvailabilityZones(t *testing.T, region string) []string + func GetAvailabilityZonesE(t *testing.T, region string) ([]string, error) + func GetCentos7Ami(t *testing.T, region string) string + func GetCentos7AmiE(t *testing.T, region string) (string, error) + func GetCloudWatchLogEntries(t *testing.T, awsRegion string, logStreamName string, logGroupName string) []string + func GetCloudWatchLogEntriesE(t *testing.T, awsRegion string, logStreamName string, logGroupName string) ([]string, error) + func GetCmkArn(t *testing.T, region string, cmkId string) string + func GetCmkArnE(t *testing.T, region string, cmkId string) (string, error) + func GetEc2InstanceIdsByTag(t *testing.T, region string, tagName string, tagValue string) []string + func GetEc2InstanceIdsByTagE(t *testing.T, region string, tagName string, tagValue string) ([]string, error) + func GetEcsOptimizedAmazonLinuxAmi(t *testing.T, region string) string + func GetEcsOptimizedAmazonLinuxAmiE(t *testing.T, region string) (string, error) + func GetFirstTwoOctets(cidrBlock string) string + func GetIamCurrentUserArn(t *testing.T) string + func GetIamCurrentUserArnE(t *testing.T) (string, error) + func GetIamCurrentUserName(t *testing.T) string + func GetIamCurrentUserNameE(t *testing.T) (string, error) + func GetMostRecentAmiId(t *testing.T, region string, ownerId string, filters map[string][]string) string + func GetMostRecentAmiIdE(t *testing.T, region string, ownerId string, filters map[string][]string) (string, error) + func GetRandomPrivateCidrBlock(routingPrefix int) string + func GetRandomRegion(t *testing.T, approvedRegions []string, forbiddenRegions []string) string + func GetRandomRegionE(t *testing.T, approvedRegions []string, forbiddenRegions []string) (string, error) + func GetS3ObjectContents(t *testing.T, awsRegion string, bucket string, key string) string + func GetS3ObjectContentsE(t *testing.T, awsRegion string, bucket string, key string) (string, error) + func GetSyslogForInstance(t *testing.T, instanceId string, awsRegion string) string + func GetSyslogForInstanceE(t *testing.T, instanceId string, region string) (string, error) + func GetSyslogForInstancesInAsg(t *testing.T, asgName string, awsRegion string) map[string]string + func GetSyslogForInstancesInAsgE(t *testing.T, asgName string, awsRegion string) (map[string]string, error) + func GetTagsForEc2Instance(t *testing.T, region string, instanceId string) map[string]string + func GetTagsForEc2InstanceE(t *testing.T, region string, instanceId string) (map[string]string, error) + func GetTimeBasedOneTimePassword(mfaDevice *iam.VirtualMFADevice) (string, error) + func GetUbuntu1404Ami(t *testing.T, region string) string + func GetUbuntu1404AmiE(t *testing.T, region string) (string, error) + func GetUbuntu1604Ami(t *testing.T, region string) string + func GetUbuntu1604AmiE(t *testing.T, region string) (string, error) + func NewAcmClient(awsRegion string) (*acm.ACM, error) + func NewAuthenticatedSession(region string) (*session.Session, error) + func NewCloudWatchLogsClient(region string) (*cloudwatchlogs.CloudWatchLogs, error) + func NewEc2Client(region string) (*ec2.EC2, error) + func NewIamClient(region string) (*iam.IAM, error) + func NewKmsClient(region string) (*kms.KMS, error) + func NewS3Client(region string) (*s3.S3, error) + func NewSnsClient(region string) (*sns.SNS, error) + func NewSqsClient(region string) (*sqs.SQS, error) + func ReadPasswordPolicyMinPasswordLength(iamClient *iam.IAM) (int, error) + func SendMessageToQueue(t *testing.T, awsRegion string, queueUrl string, message string) + func SendMessageToQueueE(t *testing.T, awsRegion string, queueUrl string, message string) error + func TerminateInstance(t *testing.T, region string, instanceId string) + func TerminateInstanceE(t *testing.T, region string, instanceId string) error + type CredentialsError struct + UnderlyingErr error + func (err CredentialsError) Error() string + type Ec2Keypair struct + Name string + Region string + func CreateAndImportEC2KeyPair(t *testing.T, region string, name string) *Ec2Keypair + func CreateAndImportEC2KeyPairE(t *testing.T, region string, name string) (*Ec2Keypair, error) + func ImportEC2KeyPair(t *testing.T, region string, name string, keyPair *ssh.KeyPair) *Ec2Keypair + func ImportEC2KeyPairE(t *testing.T, region string, name string, keyPair *ssh.KeyPair) (*Ec2Keypair, error) + type NoImagesFound struct + Filters map[string][]string + OwnerId string + Region string + func (err NoImagesFound) Error() string + type QueueMessageResponse struct + Error error + MessageBody string + ReceiptHandle string + func WaitForQueueMessage(t *testing.T, awsRegion string, queueUrl string, timeout int) QueueMessageResponse + type ReceiveMessageTimeout struct + QueueUrl string + TimeoutSec int + func (err ReceiveMessageTimeout) Error() string + type Subnet struct + AvailabilityZone string + Id string + func GetSubnetsForVpc(t *testing.T, vpcId string, region string) []Subnet + func GetSubnetsForVpcE(t *testing.T, vpcId string, region string) ([]Subnet, error) + type Vpc struct + Id string + Name string + Subnets []Subnet + func GetDefaultVpc(t *testing.T, region string) *Vpc + func GetDefaultVpcE(t *testing.T, region string) (*Vpc, error)