Versions in this module Expand all Collapse all v1 v1.0.1 Nov 13, 2023 v1.0.0 Nov 13, 2023 Changes in this version + const EnvVarAccAssumeRoleARN + const EnvVarAccessKeyId + const EnvVarAlternateAccessKeyId + const EnvVarAlternateProfile + const EnvVarAlternateRegion + const EnvVarAlternateSecretAccessKey + const EnvVarAssumeRoleARN + const EnvVarAssumeRoleDuration + const EnvVarAssumeRoleExternalID + const EnvVarAssumeRoleSessionName + const EnvVarContainerCredentialsFullURI + const EnvVarDefaultRegion + const EnvVarGithubToken + const EnvVarProfile + const EnvVarSecretAccessKey + const EnvVarThirdRegion + var GlobalMutexKV = NewMutexKV() + func FailIfAllEnvVarEmpty(t testing.T, names []string, usageMessage string) (string, string) + func FailIfEnvVarEmpty(t testing.T, name string, usageMessage string) string + func GetEnvVarWithDefault(variable string, defaultValue string) string + func GetSupportedEC2Platforms(conn *ec2.EC2) ([]string, error) + func HasEC2Classic(platforms []string) bool + func NewSessionForRegion(cfg *aws.Config, region, terraformVersion string) (*session.Session, error) + func RequireEnvVar(name string, usageMessage string) (string, error) + func RequireOneOfEnvVar(names []string, usageMessage string) (string, string, error) + func ReverseDNS(hostname string) string + func SkipIfAllEnvVarEmpty(t testing.T, names []string, usageMessage string) (string, string) + func SkipIfEnvVarEmpty(t testing.T, name string, usageMessage string) string + func StdUserAgentProducts(terraformVersion string) *awsbase.APNInfo + type AWSClient struct + ACMConn *acm.ACM + ACMPCAConn *acmpca.ACMPCA + AMPConn *prometheusservice.PrometheusService + APIGatewayConn *apigateway.APIGateway + APIGatewayManagementAPIConn *apigatewaymanagementapi.ApiGatewayManagementApi + APIGatewayV2Conn *apigatewayv2.ApiGatewayV2 + AccessAnalyzerConn *accessanalyzer.AccessAnalyzer + AccountConn *account.Account + AccountID string + AlexaForBusinessConn *alexaforbusiness.AlexaForBusiness + AmplifyBackendConn *amplifybackend.AmplifyBackend + AmplifyConn *amplify.Amplify + AmplifyUIBuilderConn *amplifyuibuilder.AmplifyUIBuilder + AppAutoScalingConn *applicationautoscaling.ApplicationAutoScaling + AppConfigConn *appconfig.AppConfig + AppConfigDataConn *appconfigdata.AppConfigData + AppFlowConn *appflow.Appflow + AppIntegrationsConn *appintegrationsservice.AppIntegrationsService + AppMeshConn *appmesh.AppMesh + AppRunnerConn *apprunner.AppRunner + AppStreamConn *appstream.AppStream + AppSyncConn *appsync.AppSync + ApplicationCostProfilerConn *applicationcostprofiler.ApplicationCostProfiler + ApplicationInsightsConn *applicationinsights.ApplicationInsights + AthenaConn *athena.Athena + AuditManagerConn *auditmanager.AuditManager + AutoScalingConn *autoscaling.AutoScaling + AutoScalingPlansConn *autoscalingplans.AutoScalingPlans + BackupConn *backup.Backup + BackupGatewayConn *backupgateway.BackupGateway + BatchConn *batch.Batch + BillingConductorConn *billingconductor.BillingConductor + BraketConn *braket.Braket + BudgetsConn *budgets.Budgets + CEConn *costexplorer.CostExplorer + CURConn *costandusagereportservice.CostandUsageReportService + ChimeConn *chime.Chime + ChimeSDKIdentityConn *chimesdkidentity.ChimeSDKIdentity + ChimeSDKMeetingsConn *chimesdkmeetings.ChimeSDKMeetings + ChimeSDKMessagingConn *chimesdkmessaging.ChimeSDKMessaging + Cloud9Conn *cloud9.Cloud9 + CloudControlConn *cloudcontrolapi.CloudControlApi + CloudDirectoryConn *clouddirectory.CloudDirectory + CloudFormationConn *cloudformation.CloudFormation + CloudFrontConn *cloudfront.CloudFront + CloudHSMV2Conn *cloudhsmv2.CloudHSMV2 + CloudSearchConn *cloudsearch.CloudSearch + CloudSearchDomainConn *cloudsearchdomain.CloudSearchDomain + CloudTrailConn *cloudtrail.CloudTrail + CloudWatchConn *cloudwatch.CloudWatch + CodeArtifactConn *codeartifact.CodeArtifact + CodeBuildConn *codebuild.CodeBuild + CodeCommitConn *codecommit.CodeCommit + CodeGuruProfilerConn *codeguruprofiler.CodeGuruProfiler + CodeGuruReviewerConn *codegurureviewer.CodeGuruReviewer + CodePipelineConn *codepipeline.CodePipeline + CodeStarConn *codestar.CodeStar + CodeStarConnectionsConn *codestarconnections.CodeStarConnections + CodeStarNotificationsConn *codestarnotifications.CodeStarNotifications + CognitoIDPConn *cognitoidentityprovider.CognitoIdentityProvider + CognitoIdentityConn *cognitoidentity.CognitoIdentity + CognitoSyncConn *cognitosync.CognitoSync + ComprehendConn *comprehend.Comprehend + ComprehendMedicalConn *comprehendmedical.ComprehendMedical + ComputeOptimizerConn *computeoptimizer.ComputeOptimizer + ConfigServiceConn *configservice.ConfigService + ConnectConn *connect.Connect + ConnectContactLensConn *connectcontactlens.ConnectContactLens + ConnectParticipantConn *connectparticipant.ConnectParticipant + CustomerProfilesConn *customerprofiles.CustomerProfiles + DAXConn *dax.DAX + DLMConn *dlm.DLM + DMSConn *databasemigrationservice.DatabaseMigrationService + DNSSuffix string + DRSConn *drs.Drs + DSConn *directoryservice.DirectoryService + DataBrewConn *gluedatabrew.GlueDataBrew + DataExchangeConn *dataexchange.DataExchange + DataPipelineConn *datapipeline.DataPipeline + DataSyncConn *datasync.DataSync + DefaultTagsConfig *tftags.DefaultConfig + DeployConn *codedeploy.CodeDeploy + DetectiveConn *detective.Detective + DevOpsGuruConn *devopsguru.DevOpsGuru + DeviceFarmConn *devicefarm.DeviceFarm + DirectConnectConn *directconnect.DirectConnect + DiscoveryConn *applicationdiscoveryservice.ApplicationDiscoveryService + DocDBConn *docdb.DocDB + DynamoDBConn *dynamodb.DynamoDB + DynamoDBStreamsConn *dynamodbstreams.DynamoDBStreams + EBSConn *ebs.EBS + EC2Conn *ec2.EC2 + EC2InstanceConnectConn *ec2instanceconnect.EC2InstanceConnect + ECRConn *ecr.ECR + ECRPublicConn *ecrpublic.ECRPublic + ECSConn *ecs.ECS + EFSConn *efs.EFS + EKSConn *eks.EKS + ELBConn *elb.ELB + ELBV2Conn *elbv2.ELBV2 + EMRConn *emr.EMR + EMRContainersConn *emrcontainers.EMRContainers + EMRServerlessConn *emrserverless.EMRServerless + ElastiCacheConn *elasticache.ElastiCache + ElasticBeanstalkConn *elasticbeanstalk.ElasticBeanstalk + ElasticInferenceConn *elasticinference.ElasticInference + ElasticTranscoderConn *elastictranscoder.ElasticTranscoder + ElasticsearchConn *elasticsearchservice.ElasticsearchService + EventsConn *eventbridge.EventBridge + EvidentlyConn *cloudwatchevidently.CloudWatchEvidently + FISConn *fis.Client + FMSConn *fms.FMS + FSxConn *fsx.FSx + FinSpaceConn *finspace.Finspace + FinSpaceDataConn *finspacedata.FinSpaceData + FirehoseConn *firehose.Firehose + ForecastConn *forecastservice.ForecastService + ForecastQueryConn *forecastqueryservice.ForecastQueryService + FraudDetectorConn *frauddetector.FraudDetector + GameLiftConn *gamelift.GameLift + GlacierConn *glacier.Glacier + GlobalAcceleratorConn *globalaccelerator.GlobalAccelerator + GlueConn *glue.Glue + GrafanaConn *managedgrafana.ManagedGrafana + GreengrassConn *greengrass.Greengrass + GreengrassV2Conn *greengrassv2.GreengrassV2 + GroundStationConn *groundstation.GroundStation + GuardDutyConn *guardduty.GuardDuty + HealthConn *health.Health + HealthLakeConn *healthlake.HealthLake + HoneycodeConn *honeycode.Honeycode + IAMConn *iam.IAM + IVSConn *ivs.IVS + IdentityStoreConn *identitystore.IdentityStore + IgnoreTagsConfig *tftags.IgnoreConfig + ImageBuilderConn *imagebuilder.Imagebuilder + Inspector2Conn *inspector2.Inspector2 + InspectorConn *inspector.Inspector + IoT1ClickDevicesConn *iot1clickdevicesservice.IoT1ClickDevicesService + IoT1ClickProjectsConn *iot1clickprojects.IoT1ClickProjects + IoTAnalyticsConn *iotanalytics.IoTAnalytics + IoTConn *iot.IoT + IoTDataConn *iotdataplane.IoTDataPlane + IoTDeviceAdvisorConn *iotdeviceadvisor.IoTDeviceAdvisor + IoTEventsConn *iotevents.IoTEvents + IoTEventsDataConn *ioteventsdata.IoTEventsData + IoTFleetHubConn *iotfleethub.IoTFleetHub + IoTJobsDataConn *iotjobsdataplane.IoTJobsDataPlane + IoTSecureTunnelingConn *iotsecuretunneling.IoTSecureTunneling + IoTSiteWiseConn *iotsitewise.IoTSiteWise + IoTThingsGraphConn *iotthingsgraph.IoTThingsGraph + IoTTwinMakerConn *iottwinmaker.IoTTwinMaker + IoTWirelessConn *iotwireless.IoTWireless + KMSConn *kms.KMS + KafkaConn *kafka.Kafka + KafkaConnectConn *kafkaconnect.KafkaConnect + KendraConn *kendra.Client + KeyspacesConn *keyspaces.Keyspaces + KinesisAnalyticsConn *kinesisanalytics.KinesisAnalytics + KinesisAnalyticsV2Conn *kinesisanalyticsv2.KinesisAnalyticsV2 + KinesisConn *kinesis.Kinesis + KinesisVideoArchivedMediaConn *kinesisvideoarchivedmedia.KinesisVideoArchivedMedia + KinesisVideoConn *kinesisvideo.KinesisVideo + KinesisVideoMediaConn *kinesisvideomedia.KinesisVideoMedia + KinesisVideoSignalingConn *kinesisvideosignalingchannels.KinesisVideoSignalingChannels + LakeFormationConn *lakeformation.LakeFormation + LambdaConn *lambda.Lambda + LexModelsConn *lexmodelbuildingservice.LexModelBuildingService + LexModelsV2Conn *lexmodelsv2.LexModelsV2 + LexRuntimeConn *lexruntimeservice.LexRuntimeService + LexRuntimeV2Conn *lexruntimev2.LexRuntimeV2 + LicenseManagerConn *licensemanager.LicenseManager + LightsailConn *lightsail.Lightsail + LocationConn *locationservice.LocationService + LogsConn *cloudwatchlogs.CloudWatchLogs + LookoutEquipmentConn *lookoutequipment.LookoutEquipment + LookoutMetricsConn *lookoutmetrics.LookoutMetrics + LookoutVisionConn *lookoutforvision.LookoutForVision + MQConn *mq.MQ + MTurkConn *mturk.MTurk + MWAAConn *mwaa.MWAA + MachineLearningConn *machinelearning.MachineLearning + Macie2Conn *macie2.Macie2 + MacieConn *macie.Macie + ManagedBlockchainConn *managedblockchain.ManagedBlockchain + MarketplaceCatalogConn *marketplacecatalog.MarketplaceCatalog + MarketplaceCommerceAnalyticsConn *marketplacecommerceanalytics.MarketplaceCommerceAnalytics + MarketplaceEntitlementConn *marketplaceentitlementservice.MarketplaceEntitlementService + MarketplaceMeteringConn *marketplacemetering.MarketplaceMetering + MediaConnectConn *mediaconnect.MediaConnect + MediaConvertAccountConn *mediaconvert.MediaConvert + MediaConvertConn *mediaconvert.MediaConvert + MediaLiveConn *medialive.MediaLive + MediaPackageConn *mediapackage.MediaPackage + MediaPackageVODConn *mediapackagevod.MediaPackageVod + MediaStoreConn *mediastore.MediaStore + MediaStoreDataConn *mediastoredata.MediaStoreData + MediaTailorConn *mediatailor.MediaTailor + MemoryDBConn *memorydb.MemoryDB + MgHConn *migrationhub.MigrationHub + MgnConn *mgn.Mgn + MigrationHubConfigConn *migrationhubconfig.MigrationHubConfig + MigrationHubRefactorSpacesConn *migrationhubrefactorspaces.MigrationHubRefactorSpaces + MigrationHubStrategyConn *migrationhubstrategyrecommendations.MigrationHubStrategyRecommendations + MobileConn *mobile.Mobile + NeptuneConn *neptune.Neptune + NetworkFirewallConn *networkfirewall.NetworkFirewall + NetworkManagerConn *networkmanager.NetworkManager + NimbleConn *nimblestudio.NimbleStudio + OpenSearchConn *opensearchservice.OpenSearchService + OpsWorksCMConn *opsworkscm.OpsWorksCM + OpsWorksConn *opsworks.OpsWorks + OrganizationsConn *organizations.Organizations + OutpostsConn *outposts.Outposts + PIConn *pi.PI + PanoramaConn *panorama.Panorama + Partition string + PersonalizeConn *personalize.Personalize + PersonalizeEventsConn *personalizeevents.PersonalizeEvents + PersonalizeRuntimeConn *personalizeruntime.PersonalizeRuntime + PinpointConn *pinpoint.Pinpoint + PinpointEmailConn *pinpointemail.PinpointEmail + PinpointSMSVoiceConn *pinpointsmsvoice.PinpointSMSVoice + PollyConn *polly.Polly + PricingConn *pricing.Pricing + ProtonConn *proton.Proton + QLDBConn *qldb.QLDB + QLDBSessionConn *qldbsession.QLDBSession + QuickSightConn *quicksight.QuickSight + RAMConn *ram.RAM + RBinConn *recyclebin.RecycleBin + RDSConn *rds.RDS + RDSDataConn *rdsdataservice.RDSDataService + RUMConn *cloudwatchrum.CloudWatchRUM + RedshiftConn *redshift.Redshift + RedshiftDataConn *redshiftdataapiservice.RedshiftDataAPIService + RedshiftServerlessConn *redshiftserverless.RedshiftServerless + Region string + RekognitionConn *rekognition.Rekognition + ResilienceHubConn *resiliencehub.ResilienceHub + ResourceGroupsConn *resourcegroups.ResourceGroups + ResourceGroupsTaggingAPIConn *resourcegroupstaggingapi.ResourceGroupsTaggingAPI + ReverseDNSPrefix string + RoboMakerConn *robomaker.RoboMaker + RolesAnywhereConn *rolesanywhere.Client + Route53Conn *route53.Route53 + Route53DomainsConn *route53domains.Client + Route53RecoveryClusterConn *route53recoverycluster.Route53RecoveryCluster + Route53RecoveryControlConfigConn *route53recoverycontrolconfig.Route53RecoveryControlConfig + Route53RecoveryReadinessConn *route53recoveryreadiness.Route53RecoveryReadiness + Route53ResolverConn *route53resolver.Route53Resolver + S3Conn *s3.S3 + S3ConnURICleaningDisabled *s3.S3 + S3ControlConn *s3control.S3Control + S3OutpostsConn *s3outposts.S3Outposts + SESConn *ses.SES + SESV2Conn *sesv2.SESV2 + SFNConn *sfn.SFN + SMSConn *sms.SMS + SNSConn *sns.SNS + SQSConn *sqs.SQS + SSMConn *ssm.SSM + SSMContactsConn *ssmcontacts.SSMContacts + SSMIncidentsConn *ssmincidents.SSMIncidents + SSOAdminConn *ssoadmin.SSOAdmin + SSOConn *sso.SSO + SSOOIDCConn *ssooidc.SSOOIDC + STSConn *sts.STS + SWFConn *swf.SWF + SageMakerA2IRuntimeConn *augmentedairuntime.AugmentedAIRuntime + SageMakerConn *sagemaker.SageMaker + SageMakerEdgeConn *sagemakeredgemanager.SagemakerEdgeManager + SageMakerFeatureStoreRuntimeConn *sagemakerfeaturestoreruntime.SageMakerFeatureStoreRuntime + SageMakerRuntimeConn *sagemakerruntime.SageMakerRuntime + SavingsPlansConn *savingsplans.SavingsPlans + SchemasConn *schemas.Schemas + SecretsManagerConn *secretsmanager.SecretsManager + SecurityHubConn *securityhub.SecurityHub + ServerlessRepoConn *serverlessapplicationrepository.ServerlessApplicationRepository + ServiceCatalogAppRegistryConn *appregistry.AppRegistry + ServiceCatalogConn *servicecatalog.ServiceCatalog + ServiceDiscoveryConn *servicediscovery.ServiceDiscovery + ServiceQuotasConn *servicequotas.ServiceQuotas + Session *session.Session + ShieldConn *shield.Shield + SignerConn *signer.Signer + SimpleDBConn *simpledb.SimpleDB + SnowDeviceManagementConn *snowdevicemanagement.SnowDeviceManagement + SnowballConn *snowball.Snowball + StorageGatewayConn *storagegateway.StorageGateway + SupportConn *support.Support + SupportedPlatforms []string + SyntheticsConn *synthetics.Synthetics + TerraformVersion string + TextractConn *textract.Textract + TimestreamQueryConn *timestreamquery.TimestreamQuery + TimestreamWriteConn *timestreamwrite.TimestreamWrite + TranscribeConn *transcribe.Client + TranscribeStreamingConn *transcribestreamingservice.TranscribeStreamingService + TransferConn *transfer.Transfer + TranslateConn *translate.Translate + VoiceIDConn *voiceid.VoiceID + WAFConn *waf.WAF + WAFRegionalConn *wafregional.WAFRegional + WAFV2Conn *wafv2.WAFV2 + WellArchitectedConn *wellarchitected.WellArchitected + WisdomConn *connectwisdomservice.ConnectWisdomService + WorkDocsConn *workdocs.WorkDocs + WorkLinkConn *worklink.WorkLink + WorkMailConn *workmail.WorkMail + WorkMailMessageFlowConn *workmailmessageflow.WorkMailMessageFlow + WorkSpacesConn *workspaces.WorkSpaces + WorkSpacesWebConn *workspacesweb.WorkSpacesWeb + XRayConn *xray.XRay + func (client *AWSClient) PartitionHostname(prefix string) string + func (client *AWSClient) RegionalHostname(prefix string) string + type Config struct + AccessKey string + AllowedAccountIds []string + AssumeRole *awsbase.AssumeRole + AssumeRoleWithWebIdentity *awsbase.AssumeRoleWithWebIdentity + CustomCABundle string + DefaultTagsConfig *tftags.DefaultConfig + EC2MetadataServiceEnableState imds.ClientEnableState + EC2MetadataServiceEndpoint string + EC2MetadataServiceEndpointMode string + Endpoints map[string]string + ForbiddenAccountIds []string + HTTPProxy string + IgnoreTagsConfig *tftags.IgnoreConfig + Insecure bool + MaxRetries int + Profile string + Region string + S3UsePathStyle bool + STSRegion string + SecretKey string + SharedConfigFiles []string + SharedCredentialsFiles []string + SkipCredsValidation bool + SkipGetEC2Platforms bool + SkipRegionValidation bool + SkipRequestingAccountId bool + SuppressDebugLog bool + TerraformVersion string + Token string + UseDualStackEndpoint bool + UseFIPSEndpoint bool + func (c *Config) Client(ctx context.Context) (interface{}, diag.Diagnostics) + type MutexKV struct + func NewMutexKV() *MutexKV + func (m *MutexKV) Lock(key string) + func (m *MutexKV) Unlock(key string)