# Functions
AccountID returns the account ID of Provider Must be used within a resource.TestCheckFunc.
No description provided by the author
ACM domain names cannot be longer than 64 characters Other resources, e.g.
No description provided by the author
AvailableEC2InstanceTypeForAvailabilityZone returns the configuration for a data source that describes the first available EC2 instance type offering in the specified availability zone from a list of preferred instance types.
AvailableEC2InstanceTypeForRegion returns the configuration for a data source that describes the first available EC2 instance type offering in the current region from a list of preferred instance types.
AvailableEC2InstanceTypeForRegionNamed returns the configuration for a data source that describes the first available EC2 instance type offering in the current region from a list of preferred instance types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CheckDestroyNoop is a TestCheckFunc to be used as a TestCase's CheckDestroy when no such check can be made.
CheckResourceAttrAccountID ensures the Terraform state exactly matches the account ID.
CheckResourceAttrEquivalentJSON is a TestCheckFunc that compares a JSON value with an expected value.
CheckResourceAttrGlobalARN ensures the Terraform state exactly matches a formatted ARN without region.
CheckResourceAttrGlobalARNAccountID ensures the Terraform state exactly matches a formatted ARN without region and with specific account ID.
CheckResourceAttrGlobalARNNoAccount ensures the Terraform state exactly matches a formatted ARN without region or account ID.
No description provided by the author
CheckResourceAttrRegionalARN ensures the Terraform state exactly matches a formatted ARN with region.
CheckResourceAttrRegionalARNAccountID ensures the Terraform state exactly matches a formatted ARN with region and specific account ID.
CheckResourceAttrRegionalARNEC2Classic ensures the Terraform state exactly matches a formatted ARN with EC2-Classic region.
CheckResourceAttrRegionalARNIgnoreRegionAndAccount ensures the Terraform state exactly matches a formatted ARN with region without specifying the region or account.
CheckResourceAttrRegionalARNNoAccount ensures the Terraform state exactly matches a formatted ARN with region but without account ID.
CheckResourceAttrRegionalHostnameService ensures the Terraform state exactly matches a service DNS hostname with region and partition DNS suffix
For example: ec2.us-west-2.amazonaws.com.
CheckResourceAttrRFC3339 ensures the Terraform state matches a RFC3339 value This TestCheckFunc will likely be moved to the Terraform Plugin SDK in the future.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: Use ConfigMultipleRegionProvider instead.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConfigCompose can be called to concatenate multiple strings to build test configurations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConfigEC2ClassicRegionProvider is the Terraform provider configuration for EC2-Classic region testing
Testing EC2-Classic assumes no other provider configurations are necessary and overwrites the "aws" provider configuration.
No description provided by the author
No description provided by the author
No description provided by the author
ConfigLatestAmazonLinux2HVMEBSARM64AMI returns the configuration for a data source that describes the latest Amazon Linux 2 arm64 AMI using HVM virtualization and an EBS root device.
ConfigLatestAmazonLinux2HVMEBSX8664AMI returns the configuration for a data source that describes the latest Amazon Linux 2 x86_64 AMI using HVM virtualization and an EBS root device.
ConfigLatestAmazonLinuxHVMEBSAMI returns the configuration for a data source that describes the latest Amazon Linux AMI using HVM virtualization and an EBS root device.
No description provided by the author
ConfigNamedRegionalProvider creates a new provider named configuration with a region.
ConfigRegionalProvider creates a new provider configuration with a region.
No description provided by the author
No description provided by the author
EC2ClassicRegion returns the EC2-Classic region for testing.
No description provided by the author
ErrorCheckSkipMessagesContaining skips tests based on error messages that indicate unsupported features.
FactoriesAlternate creates ProviderFactories for cross-account and cross-region configurations
For cross-region testing: Typically paired with PreCheckMultipleRegion and ConfigAlternateRegionProvider.
MatchResourceAttrAccountID ensures the Terraform state regexp matches an account ID.
MatchResourceAttrGlobalARN ensures the Terraform state regexp matches a formatted ARN without region.
MatchResourceAttrGlobalARNNoAccount ensures the Terraform state regexp matches a formatted ARN without region or account ID.
MatchResourceAttrGlobalHostname ensures the Terraform state regexp matches a formatted DNS hostname with partition DNS suffix and without region.
MatchResourceAttrRegionalARN ensures the Terraform state regexp matches a formatted ARN with region.
MatchResourceAttrRegionalARNAccountID ensures the Terraform state regexp matches a formatted ARN with region and specific account ID.
MatchResourceAttrRegionalARNNoAccount ensures the Terraform state regexp matches a formatted ARN with region but without account ID.
MatchResourceAttrRegionalHostname ensures the Terraform state regexp matches a formatted DNS hostname with region and partition DNS suffix.
No description provided by the author
No description provided by the author
No description provided by the author
PreCheck verifies and sets required provider testing configuration
This PreCheck function should be present in every acceptance test.
No description provided by the author
PreCheckAPIGatewayTypeEDGE checks if endpoint config type EDGE can be used in a test and skips test if not (i.e., not in standard partition).
No description provided by the author
No description provided by the author
Certain regions such as AWS GovCloud (US) do not support Simple AD directories and we do not have a good read-only way to determine this situation.
PreCheckEC2Classic verifies AWS credentials and that EC2-Classic is supported.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PreCheckPartition checks that the test partition is the specified partition.
No description provided by the author
PreCheckPartitionNot checks that the test partition is not one of the specified partitions.
PreCheckRegion checks that the test region is the specified region.
PreCheckRegionNot checks that the test region is not one of the specified regions.
Check service API call error for reasons to skip acceptance testing These include missing API endpoints and unsupported API calls.
No description provided by the author
Copied and inlined from the SDK testing code.
No description provided by the author
ProtoV5FactoriesAlternateAccountAndAlternateRegion creates ProtoV5ProviderFactories for cross-account and cross-region configurations
Usage typically paired with PreCheckMultipleRegion, PreCheckAlternateAccount, and ConfigAlternateAccountAndAlternateRegionProvider.
ProtoV5FactoriesMultipleRegions creates ProtoV5ProviderFactories for the specified number of region configurations
Usage typically paired with PreCheckMultipleRegion and ConfigMultipleRegionProvider.
No description provided by the author
RandomDomainName creates a random two-level domain name in the form "<random>.test" The top level domain ".test" is reserved by IANA for testing purposes: https://datatracker.ietf.org/doc/html/rfc6761.
RandomEmailAddress generates a random email address in the form "tf-acc-test-<random>@<domain>".
RandomFQDomainName creates a random fully-qualified two-level domain name in the form "<random>.test." The top level domain ".test" is reserved by IANA for testing purposes: https://datatracker.ietf.org/doc/html/rfc6761.
RandomSubdomain creates a random three-level domain name in the form "<random>.<random>.test" The top level domain ".test" is reserved by IANA for testing purposes: https://datatracker.ietf.org/doc/html/rfc6761.
No description provided by the author
No description provided by the author
No description provided by the author
Skip implements a wrapper for (*testing.T).Skip() to prevent unused linting reports
Reference: https://github.com/dominikh/go-tools/issues/633#issuecomment-606560616.
No description provided by the author
No description provided by the author
TLSRSAPrivateKeyPEM generates a RSA private key PEM string.
TLSRSAPublicKeyPEM generates a RSA public key PEM string.
TLSRSAX509CertificateRequestPEM generates a x509 certificate request PEM string and a RSA private key PEM string.
TLSRSAX509LocallySignedCertificatePEM generates a local CA x509 certificate PEM string.
TLSRSAX509SelfSignedCACertificateForRolesAnywhereTrustAnchorPEM generates a x509 CA certificate PEM string.
TLSRSAX509SelfSignedCACertificatePEM generates a x509 CA certificate PEM string.
TLSRSAX509SelfSignedCertificatePEM generates a x509 certificate PEM string.
# Constants
DefaultEmailAddress is the default email address to set as a resource or data source parameter for acceptance tests.
Provider name for single configuration testing.
Provider name for alternate configuration testing.
Provider name for alternate account and alternate region configuration testing.
Provider name for alternate account and same region configuration testing.
Provider name for same account and alternate region configuration testing.
Provider name for third configuration testing.
No description provided by the author
No description provided by the author
# Variables
ProtoV5ProviderFactories is a static map containing only the main provider instance
Use other ProviderFactories functions, such as FactoriesAlternate, for tests requiring special provider configurations.
Provider is the "main" provider instance
This Provider can be used in testing code for API calls without requiring the use of saving and referencing specific ProviderFactories instances.
ProviderEC2Classic is the EC2-Classic provider instance
This Provider can be used in testing code for API calls without requiring the use of saving and referencing specific ProviderFactories instances.
# Type aliases
No description provided by the author