Back to Terraform Provider Aws

Acceptance Testing Environment Variable Dictionary

docs/acc-test-environment-variables.md

6.43.031.3 KB
Original Source
<!-- Copyright IBM Corp. 2014, 2026 --> <!-- SPDX-License-Identifier: MPL-2.0 -->

Acceptance Testing Environment Variable Dictionary

Environment variables (beyond standard AWS Go SDK ones) used by acceptance testing. See also the internal/acctest package.

VariableDescription
ACM_CERTIFICATE_ROOT_DOMAINRoot domain name to use with ACM Certificate testing.
ACM_TEST_CERTIFICATE_EXPORTFlag to execute tests that enable exportable certificates.
ADM_CLIENT_IDIdentifier for Amazon Device Manager Client in Pinpoint testing.
AMPLIFY_DOMAIN_NAMEDomain name to use for Amplify domain association testing.
AMPLIFY_GITHUB_ACCESS_TOKENGitHub access token used for AWS Amplify testing.
AMPLIFY_GITHUB_REPOSITORYGitHub repository used for AWS Amplify testing.
ADM_CLIENT_SECRETSecret for Amazon Device Manager Client in Pinpoint testing.
APNS_BUNDLE_IDIdentifier for Apple Push Notification Service Bundle in Pinpoint testing.
APNS_CERTIFICATECertificate (PEM format) for Apple Push Notification Service in Pinpoint testing.
APNS_CERTIFICATE_PRIVATE_KEYPrivate key for Apple Push Notification Service in Pinpoint testing.
APNS_SANDBOX_BUNDLE_IDIdentifier for Sandbox Apple Push Notification Service Bundle in Pinpoint testing.
APNS_SANDBOX_CERTIFICATECertificate (PEM format) for Sandbox Apple Push Notification Service in Pinpoint testing.
APNS_SANDBOX_CERTIFICATE_PRIVATE_KEYPrivate key for Sandbox Apple Push Notification Service in Pinpoint testing.
APNS_SANDBOX_CREDENTIALCredential contents for Sandbox Apple Push Notification Service in SNS Application Platform testing. Conflicts with APNS_SANDBOX_CREDENTIAL_PATH.
APNS_SANDBOX_CREDENTIAL_PATHPath to credential for Sandbox Apple Push Notification Service in SNS Application Platform testing. Conflicts with APNS_SANDBOX_CREDENTIAL.
APNS_SANDBOX_PRINCIPALPrincipal contents for Sandbox Apple Push Notification Service in SNS Application Platform testing. Conflicts with APNS_SANDBOX_PRINCIPAL_PATH.
APNS_SANDBOX_PRINCIPAL_PATHPath to the principal for Sandbox Apple Push Notification Service in SNS Application Platform testing. Conflicts with APNS_SANDBOX_PRINCIPAL.
APNS_SANDBOX_TEAM_IDIdentifier for Sandbox Apple Push Notification Service Team in Pinpoint testing.
APNS_SANDBOX_TOKEN_KEYToken key file content (.p8 format) for Sandbox Apple Push Notification Service in Pinpoint testing.
APNS_SANDBOX_TOKEN_KEY_IDIdentifier for Sandbox Apple Push Notification Service Token Key in Pinpoint testing.
APNS_TEAM_IDIdentifier for Apple Push Notification Service Team in Pinpoint testing.
APNS_TOKEN_KEYToken key file content (.p8 format) for Apple Push Notification Service in Pinpoint testing.
APNS_TOKEN_KEY_IDIdentifier for Apple Push Notification Service Token Key in Pinpoint testing.
APNS_VOIP_BUNDLE_IDIdentifier for VOIP Apple Push Notification Service Bundle in Pinpoint testing.
APNS_VOIP_CERTIFICATECertificate (PEM format) for VOIP Apple Push Notification Service in Pinpoint testing.
APNS_VOIP_CERTIFICATE_PRIVATE_KEYPrivate key for VOIP Apple Push Notification Service in Pinpoint testing.
APNS_VOIP_TEAM_IDIdentifier for VOIP Apple Push Notification Service Team in Pinpoint testing.
APNS_VOIP_TOKEN_KEYToken key file content (.p8 format) for VOIP Apple Push Notification Service in Pinpoint testing.
APNS_VOIP_TOKEN_KEY_IDIdentifier for VOIP Apple Push Notification Service Token Key in Pinpoint testing.
APPRUNNER_CUSTOM_DOMAINA custom domain endpoint (root domain, subdomain, or wildcard) for AppRunner Custom Domain Association testing.
AUDITMANAGER_DEREGISTER_ACCOUNT_ON_DESTROYFlag to execute tests that will disable AuditManager in the account upon destruction.
AUDITMANAGER_ORGANIZATION_ADMIN_ACCOUNT_IDOrganization admin account identifier for use in AuditManager testing.
AWS_ALTERNATE_ACCESS_KEY_IDAWS access key ID with access to a secondary AWS account for tests requiring multiple accounts. Requires AWS_ALTERNATE_SECRET_ACCESS_KEY. Conflicts with AWS_ALTERNATE_PROFILE.
AWS_ALTERNATE_SECRET_ACCESS_KEYAWS secret access key with access to a secondary AWS account for tests requiring multiple accounts. Requires AWS_ALTERNATE_ACCESS_KEY_ID. Conflicts with AWS_ALTERNATE_PROFILE.
AWS_ALTERNATE_PROFILEAWS profile with access to a secondary AWS account for tests requiring multiple accounts. Conflicts with AWS_ALTERNATE_ACCESS_KEY_ID and AWS_ALTERNATE_SECRET_ACCESS_KEY.
AWS_ALTERNATE_REGIONSecondary AWS region for tests requiring multiple regions. Defaults to us-east-1.
AWS_API_GATEWAY_DOMAIN_NAME_CERTIFICATE_BODYCertificate body of publicly trusted certificate for API Gateway Domain Name testing.
AWS_API_GATEWAY_DOMAIN_NAME_CERTIFICATE_CHAINCertificate chain of publicly trusted certificate for API Gateway Domain Name testing.
AWS_API_GATEWAY_DOMAIN_NAME_CERTIFICATE_PRIVATE_KEYPrivate key of publicly trusted certificate for API Gateway Domain Name testing.
AWS_API_GATEWAY_DOMAIN_NAME_REGIONAL_CERTIFICATE_NAME_ENABLEDFlag to enable API Gateway Domain Name regional certificate upload testing.
AWS_BEDROCK_AGENTCORE_RUNTIME_IMAGE_V1_URIECR repository image URI (tagged as v1) for Bedrock AgentCore Agent Runtime acceptance tests.
AWS_BEDROCK_AGENTCORE_RUNTIME_IMAGE_V2_URIECR repository image URI (tagged as v2) for Bedrock AgentCore Agent Runtime acceptance
AWS_BEDROCK_AGENTCORE_RUNTIME_CODE_V1_S3_BUCKETS3 bucket that contains the object holding the ZIP file of the agent runtime source code (version v1) for Bedrock AgentCore Agent Runtime code acceptance tests.
AWS_BEDROCK_AGENTCORE_RUNTIME_CODE_V1_S3_KEYS3 key of the object that contains the ZIP file of the agent runtime source code (version v1) for Bedrock AgentCore Agent Runtime acceptance tests.
AWS_BEDROCK_AGENTCORE_RUNTIME_CODE_V2_S3_BUCKETS3 bucket that contains the object holding the ZIP file of the agent runtime source code (version v2) for Bedrock AgentCore Agent Runtime code acceptance tests.
AWS_BEDROCK_AGENTCORE_RUNTIME_CODE_V2_S3_KEYS3 key of the object that contains the ZIP file of the agent runtime source code (version v2) for Bedrock AgentCore Agent Runtime acceptance tests.
AWS_CODEBUILD_BITBUCKET_SOURCE_LOCATIONBitBucket source URL for CodeBuild testing. CodeBuild must have access to this repository via OAuth or Source Credentials. Defaults to https://[email protected]/terraform/aws-test.git.
AWS_CODEBUILD_GITHUB_SOURCE_LOCATIONGitHub source URL for CodeBuild testing. CodeBuild must have access to this repository via OAuth or Source Credentials. Defaults to https://github.com/hashibot-test/aws-test.git.
AWS_DEFAULT_REGIONPrimary AWS region for tests. Defaults to us-west-2.
AWS_DETECTIVE_MEMBER_EMAILEmail address for Detective Member testing. A valid email address associated with an AWS root account is required for tests to pass.
AWS_EC2_CLIENT_VPN_LIMITConcurrency limit for Client VPN acceptance tests. Default is 5 if not specified.
AWS_EC2_EIP_PUBLIC_IPV4_POOLIdentifier for EC2 Public IPv4 Pool for EC2 EIP testing.
AWS_EC2_TRANSIT_GATEWAY_LIMITConcurrency limit for Transit Gateway acceptance tests. Default is 5 if not specified.
AWS_EC2_VERIFIED_ACCESS_INSTANCE_LIMITConcurrency limit for Verified Access acceptance tests. Default is 5 if not specified.
AWS_GUARDDUTY_MEMBER_ACCOUNT_IDIdentifier of AWS Account for GuardDuty Member testing. DEPRECATED: Should be replaced with standard alternate account handling for tests.
AWS_GUARDDUTY_MEMBER_EMAILEmail address for GuardDuty Member testing. DEPRECATED: It may be possible to use a placeholder email address instead.
AWS_IDENTITY_STORE_GROUP_IDID of a valid AWS Identity Store group.
AWS_IDENTITY_STORE_GROUP_NAMEName of a valid AWS Identity Store group.
AWS_IDENTITY_STORE_USER_IDID of a valid AWS Identity Store user.
AWS_IDENTITY_STORE_USER_NAMEName of a valid AWS Identity Store user.
AWS_LAMBDA_IMAGE_LATEST_IDECR repository image URI (tagged as latest) for Lambda container image acceptance tests.
AWS_LAMBDA_IMAGE_V1_IDECR repository image URI (tagged as v1) for Lambda container image acceptance tests.
AWS_LAMBDA_IMAGE_V2_IDECR repository image URI (tagged as v2) for Lambda container image acceptance tests.
AWS_THIRD_ACCESS_KEY_IDAWS access key ID with access to a third AWS account for tests requiring multiple accounts. Requires AWS_THIRD_SECRET_ACCESS_KEY. Conflicts with AWS_THIRD_PROFILE.
AWS_THIRD_SECRET_ACCESS_KEYAWS secret access key with access to a third AWS account for tests requiring multiple accounts. Requires AWS_THIRD_ACCESS_KEY_ID. Conflicts with AWS_THIRD_PROFILE.
AWS_THIRD_PROFILEAWS profile with access to a third AWS account for tests requiring multiple accounts. Conflicts with AWS_THIRD_ACCESS_KEY_ID and AWS_THIRD_SECRET_ACCESS_KEY.
AWS_THIRD_REGIONThird AWS region for tests requiring multiple regions. Defaults to us-east-2.
CHATBOT_SLACK_CHANNEL_IDID of the Slack channel.
CHATBOT_SLACK_TEAM_IDID of the Slack workspace authorized with AWS Chatbot.
CHATBOT_TEAMS_CHANNEL_IDID of the Microsoft Teams channel.
CHATBOT_TEAMS_TEAM_IDID of the Microsoft Teams workspace authorized with AWS Chatbot.
CHATBOT_TEAMS_TENANT_IDID of the Microsoft Teams tenant.
CLOUD_HSM_CLUSTER_IDCloud HSM cluster identifier for KMS custom key store acceptance tests.
CLOUDFRONT_LAMBDA_EDGE_TESTWhether to run CloudFront Lambda@Edge tests that leave behind Lambda functions
DX_CONNECTION_IDIdentifier for Direct Connect Connection testing.
DX_VIRTUAL_INTERFACE_IDIdentifier for Direct Connect Virtual Interface testing.
EC2_SECURITY_GROUP_RULES_PER_GROUP_LIMITEC2 Quota for Rules per Security Group. Defaults to 50. DEPRECATED: Can be augmented or replaced with Service Quotas lookup.
EVENT_BRIDGE_PARTNER_EVENT_BUS_NAMEAmazon EventBridge partner event bus name.
EVENT_BRIDGE_PARTNER_EVENT_SOURCE_NAMEAmazon EventBridge partner event source name.
FINSPACE_MANAGED_KX_LICENSE_ENABLEDEnables tests requiring a license to provision managed KX resources.
GCM_API_KEYAPI Key for Google Cloud Messaging in Pinpoint and SNS Platform Application testing.
GITHUB_TOKENGitHub token for CodePipeline testing.
GLOBALACCERATOR_BYOIP_IPV4_ADDRESSIPv4 address from a BYOIP CIDR of AWS Account used for testing Global Accelerator's BYOIP accelerator.
GRAFANA_SSO_GROUP_IDAWS SSO group ID for Grafana testing.
GRAFANA_SSO_USER_IDAWS SSO user ID for Grafana testing.
MACIE_MEMBER_ACCOUNT_IDIdentifier of AWS Account for Macie Member testing. DEPRECATED: Should be replaced with standard alternate account handling for tests.
MSK_EXPRESS_BROKER_ENABLEDEnables MSK Express broker testing.
QUICKSIGHT_NAMESPACEQuickSight namespace name for testing.
QUICKSIGHT_ATHENA_TESTING_ENABLEDEnable QuickSight tests dependent on Amazon Athena resources.
ROUTE53DOMAINS_DOMAIN_NAMERegistered domain for Route 53 Domains testing.
RESOURCEEXPLORER_INDEX_TYPEIndex Type for Resource Explorer 2 Search datasource testing.
SAGEMAKER_IMAGE_VERSION_BASE_IMAGESageMaker base image to use for tests.
SERVICEQUOTAS_INCREASE_ON_CREATE_QUOTA_CODEQuota Code for Service Quotas testing (submits support case).
SERVICEQUOTAS_INCREASE_ON_CREATE_SERVICE_CODEService Code for Service Quotas testing (submits support case).
SERVICEQUOTAS_INCREASE_ON_CREATE_VALUEValue of quota increase for Service Quotas testing (submits support case).
SES_DOMAIN_IDENTITY_ROOT_DOMAINRoot domain name of publicly accessible and Route 53 configurable domain for SES Domain Identity testing.
SES_DEDICATED_IPDedicated IP address for testing IP assignment with a "Standard" (non-managed) SES dedicated IP pool.
SWF_DOMAIN_TESTING_ENABLEDEnables SWF Domain testing (API does not support deletions).
TEST_AWS_ORGANIZATION_ACCOUNT_EMAIL_DOMAINEmail address for Organizations Account testing.
TEST_AWS_SES_VERIFIED_EMAIL_ARNVerified SES Email Identity for use in Cognito User Pool testing.
TF_ACCEnables Go tests containing resource.Test() and resource.ParallelTest().
TF_ACC_ASSUME_ROLE_ARNAmazon Resource Name of existing IAM Role to use for limited permissions acceptance testing.
TF_ACC_REQUIRED_TAG_KEYName of the tag key required for the resource being tested as defined in the organizational tagging policy
TF_AWS_BEDROCK_OSS_COLLECTION_NAMEName of the OpenSearch Serverless collection to be used with an Amazon Bedrock Knowledge Base.
TF_AWS_CONTROLTOWER_CONTROL_OU_NAMEOrganizational unit name to be targeted by the Control Tower control.
TF_AWS_CONTROLTOWER_BASELINE_ENABLE_BASELINE_ARNEnable baseline ARN.
TF_AWS_DATAEXCHANGE_DATA_SET_IDID of DataExchange Data Set to use for testing.
TF_AWS_EC2_SECONDARY_NETWORK_INTERFACE_ENABLEDFlag to enable EC2 instance secondary network interface testing.
TF_AWS_EC2_SECONDARY_NETWORK_INTERFACE_INSTANCE_TYPEInstance type to launch for EC2 instance secondary network interface testing.
TF_AWS_KENDRA_INDEX_ARNARN of Kendra Index to use for testing.
TF_AWS_LICENSE_MANAGER_GRANT_HOME_REGIONRegion where a License Manager license is imported.
TF_AWS_LICENSE_MANAGER_GRANT_LICENSE_ARNARN for a License Manager license imported into the current account.
TF_AWS_LICENSE_MANAGER_GRANT_PRINCIPALARN of a principal to share the License Manager license with. Either a root user, Organization, or Organizational Unit.
TF_AWS_QUICKSIGHT_IDC_GROUPName of the IAM Identity Center Group to be assigned role membership.
TF_TEST_CLOUDFRONT_RETAINFlag to disable but dangle CloudFront Distributions during testing to reduce feedback time (must be manually destroyed afterwards).
TF_TEST_ELASTICACHE_RESERVED_CACHE_NODEFlag to enable resource tests for ElastiCache reserved nodes. Set to 1 to run tests.
TRUST_ANCHOR_CERTIFICATETrust anchor certificate for KMS custom key store acceptance tests.
INVOICING_INVOICE_TESTS_ENABLEDFlag to enable acceptance tests for Invoice Unit Invoice. Set to 1 to run tests.
VPC_NETWORK_INTERFACE_TEST_MULTIPLE_CARDSFlag to execute tests that enable to attach multiple network interfaces.