-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add introspection and limit args to aws_appsync_graphql_api #35631
feat: Add introspection and limit args to aws_appsync_graphql_api #35631
Conversation
Community NoteVoting for Prioritization
For Submitters
|
fad4a3b
to
c168c1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccAppSync_serial' PKG=appsync
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/appsync/... -v -count 1 -parallel 20 -run=TestAccAppSync_serial -timeout 360m
=== RUN TestAccAppSync_serial
=== PAUSE TestAccAppSync_serial
=== CONT TestAccAppSync_serial
=== RUN TestAccAppSync_serial/GraphQLAPI
=== RUN TestAccAppSync_serial/GraphQLAPI/AuthenticationType_openIDConnect
=== RUN TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_clientID
=== RUN TestAccAppSync_serial/GraphQLAPI/name
=== RUN TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_awsLambda
=== RUN TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_multiple
=== RUN TestAccAppSync_serial/GraphQLAPI/AuthenticationType_awsIAM
=== RUN TestAccAppSync_serial/GraphQLAPI/AuthenticationType_apiKey
=== RUN TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_authTTL
=== RUN TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_issuer
=== RUN TestAccAppSync_serial/GraphQLAPI/basic
=== RUN TestAccAppSync_serial/GraphQLAPI/UserPool_defaultAction
=== RUN TestAccAppSync_serial/GraphQLAPI/LambdaAuthorizerConfig_identityValidationExpression
=== RUN TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_openIDConnect
=== RUN TestAccAppSync_serial/GraphQLAPI/visibility
=== RUN TestAccAppSync_serial/GraphQLAPI/AuthenticationType_amazonCognitoUserPools
=== RUN TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_awsIAM
=== RUN TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_apiKey
=== RUN TestAccAppSync_serial/GraphQLAPI/log
=== RUN TestAccAppSync_serial/GraphQLAPI/UserPool_awsRegion
=== RUN TestAccAppSync_serial/GraphQLAPI/LambdaAuthorizerConfig_authorizerUri
=== RUN TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_cognitoUserPools
=== RUN TestAccAppSync_serial/GraphQLAPI/authenticationType
=== RUN TestAccAppSync_serial/GraphQLAPI/AuthenticationType_awsLambda
=== RUN TestAccAppSync_serial/GraphQLAPI/Log_fieldLogLevel
=== RUN TestAccAppSync_serial/GraphQLAPI/Log_excludeVerboseContent
=== RUN TestAccAppSync_serial/GraphQLAPI/introspectionConfig
=== RUN TestAccAppSync_serial/GraphQLAPI/resolverCountLimit
=== RUN TestAccAppSync_serial/GraphQLAPI/disappears
=== RUN TestAccAppSync_serial/GraphQLAPI/xrayEnabled
=== RUN TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_iatTTL
=== RUN TestAccAppSync_serial/GraphQLAPI/schema
=== RUN TestAccAppSync_serial/GraphQLAPI/LambdaAuthorizerConfig_authorizerResultTtlInSeconds
=== RUN TestAccAppSync_serial/GraphQLAPI/queryDepthLimit
=== RUN TestAccAppSync_serial/GraphQLAPI/tags
=== RUN TestAccAppSync_serial/Function
=== RUN TestAccAppSync_serial/Function/basic
=== RUN TestAccAppSync_serial/Function/code
=== RUN TestAccAppSync_serial/Function/disappears
=== RUN TestAccAppSync_serial/Function/description
=== RUN TestAccAppSync_serial/Function/responseMappingTemplate
=== RUN TestAccAppSync_serial/Function/sync
=== RUN TestAccAppSync_serial/Resolver
=== RUN TestAccAppSync_serial/Resolver/caching
=== RUN TestAccAppSync_serial/Resolver/sync
=== RUN TestAccAppSync_serial/Resolver/basic
=== RUN TestAccAppSync_serial/Resolver/disappears
testing_new.go:91: Error running post-test destroy, there may be dangling resources: exit status 1
Error: deleting AppSync Resolver (7ix5ps5imjfhbcyt7mlr55tqym-Query-singlePost): NotFoundException: No resolver found.
=== RUN TestAccAppSync_serial/Resolver/DataSource_lambda
=== RUN TestAccAppSync_serial/Resolver/requestTemplate
=== RUN TestAccAppSync_serial/Resolver/multipleResolvers
=== RUN TestAccAppSync_serial/Resolver/pipeline
=== RUN TestAccAppSync_serial/Resolver/code
=== RUN TestAccAppSync_serial/Resolver/dataSource
=== RUN TestAccAppSync_serial/Resolver/responseTemplate
=== RUN TestAccAppSync_serial/Type
=== RUN TestAccAppSync_serial/Type/basic
=== RUN TestAccAppSync_serial/Type/disappears
=== RUN TestAccAppSync_serial/DomainNameAssociation
=== RUN TestAccAppSync_serial/DomainNameAssociation/disappears
appsync_test.go:120: Environment variable AWS_APPSYNC_DOMAIN_NAME_CERTIFICATE_DOMAIN is not set. This environment variable must be set to any non-empty value to enable the test.
=== RUN TestAccAppSync_serial/DomainNameAssociation/basic
appsync_test.go:120: Environment variable AWS_APPSYNC_DOMAIN_NAME_CERTIFICATE_DOMAIN is not set. This environment variable must be set to any non-empty value to enable the test.
=== RUN TestAccAppSync_serial/APIKey
=== RUN TestAccAppSync_serial/APIKey/expires
=== RUN TestAccAppSync_serial/APIKey/basic
=== RUN TestAccAppSync_serial/APIKey/description
=== RUN TestAccAppSync_serial/DataSource
=== RUN TestAccAppSync_serial/DataSource/description
=== RUN TestAccAppSync_serial/DataSource/Type_eventBridge
=== RUN TestAccAppSync_serial/DataSource/DynamoDB_useCallerCredentials
=== RUN TestAccAppSync_serial/DataSource/Type_http
=== RUN TestAccAppSync_serial/DataSource/Type_http_auth
=== RUN TestAccAppSync_serial/DataSource/Type_rdbms_options
datasource_test.go:502: Step 1/2 error: Error running pre-apply plan: exit status 1
Error: Missing required argument
on terraform_plugin_test.tf line 26, in resource "aws_rds_cluster" "test":
26: resource "aws_rds_cluster" "test" {
The argument "engine" is required, but no definition was found.
=== RUN TestAccAppSync_serial/DataSource/basic
=== RUN TestAccAppSync_serial/DataSource/HTTP_endpoint
=== RUN TestAccAppSync_serial/DataSource/type
=== RUN TestAccAppSync_serial/DataSource/Type_lambda
=== RUN TestAccAppSync_serial/DataSource/DynamoDB_region
=== RUN TestAccAppSync_serial/DataSource/Type_dynamoDB
=== RUN TestAccAppSync_serial/DataSource/Type_none
=== RUN TestAccAppSync_serial/DataSource/Type_rdbms
datasource_test.go:473: Step 1/2 error: Error running pre-apply plan: exit status 1
Error: Missing required argument
on terraform_plugin_test.tf line 26, in resource "aws_rds_cluster" "test":
26: resource "aws_rds_cluster" "test" {
The argument "engine" is required, but no definition was found.
=== RUN TestAccAppSync_serial/ApiCache
=== RUN TestAccAppSync_serial/ApiCache/basic
=== RUN TestAccAppSync_serial/ApiCache/disappears
=== RUN TestAccAppSync_serial/DomainName
=== RUN TestAccAppSync_serial/DomainName/basic
appsync_test.go:120: Environment variable AWS_APPSYNC_DOMAIN_NAME_CERTIFICATE_DOMAIN is not set. This environment variable must be set to any non-empty value to enable the test.
=== RUN TestAccAppSync_serial/DomainName/disappears
appsync_test.go:120: Environment variable AWS_APPSYNC_DOMAIN_NAME_CERTIFICATE_DOMAIN is not set. This environment variable must be set to any non-empty value to enable the test.
=== RUN TestAccAppSync_serial/DomainName/description
appsync_test.go:120: Environment variable AWS_APPSYNC_DOMAIN_NAME_CERTIFICATE_DOMAIN is not set. This environment variable must be set to any non-empty value to enable the test.
--- FAIL: TestAccAppSync_serial (3678.67s)
--- PASS: TestAccAppSync_serial/GraphQLAPI (1027.73s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AuthenticationType_openIDConnect (21.14s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_clientID (30.28s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/name (28.77s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_awsLambda (38.12s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_multiple (40.81s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AuthenticationType_awsIAM (20.05s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AuthenticationType_apiKey (19.77s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_authTTL (29.54s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_issuer (32.87s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/basic (18.25s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/UserPool_defaultAction (33.96s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/LambdaAuthorizerConfig_identityValidationExpression (47.60s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_openIDConnect (19.13s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/visibility (18.61s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AuthenticationType_amazonCognitoUserPools (22.20s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_awsIAM (19.12s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_apiKey (18.54s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/log (20.24s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/UserPool_awsRegion (31.48s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/LambdaAuthorizerConfig_authorizerUri (49.83s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AdditionalAuthentication_cognitoUserPools (21.27s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/authenticationType (32.25s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/AuthenticationType_awsLambda (35.35s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/Log_fieldLogLevel (43.63s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/Log_excludeVerboseContent (30.02s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/introspectionConfig (18.29s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/resolverCountLimit (19.26s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/disappears (16.12s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/xrayEnabled (27.30s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/OpenIDConnect_iatTTL (29.24s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/schema (33.91s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/LambdaAuthorizerConfig_authorizerResultTtlInSeconds (89.57s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/queryDepthLimit (20.71s)
--- PASS: TestAccAppSync_serial/GraphQLAPI/tags (50.50s)
--- PASS: TestAccAppSync_serial/Function (342.11s)
--- PASS: TestAccAppSync_serial/Function/basic (74.30s)
--- PASS: TestAccAppSync_serial/Function/code (62.11s)
--- PASS: TestAccAppSync_serial/Function/disappears (42.55s)
--- PASS: TestAccAppSync_serial/Function/description (72.65s)
--- PASS: TestAccAppSync_serial/Function/responseMappingTemplate (51.68s)
--- PASS: TestAccAppSync_serial/Function/sync (38.81s)
--- FAIL: TestAccAppSync_serial/Resolver (339.93s)
--- PASS: TestAccAppSync_serial/Resolver/caching (23.15s)
--- PASS: TestAccAppSync_serial/Resolver/sync (33.63s)
--- PASS: TestAccAppSync_serial/Resolver/basic (27.03s)
--- FAIL: TestAccAppSync_serial/Resolver/disappears (22.54s)
--- PASS: TestAccAppSync_serial/Resolver/DataSource_lambda (36.60s)
--- PASS: TestAccAppSync_serial/Resolver/requestTemplate (35.52s)
--- PASS: TestAccAppSync_serial/Resolver/multipleResolvers (32.77s)
--- PASS: TestAccAppSync_serial/Resolver/pipeline (24.00s)
--- PASS: TestAccAppSync_serial/Resolver/code (25.57s)
--- PASS: TestAccAppSync_serial/Resolver/dataSource (39.39s)
--- PASS: TestAccAppSync_serial/Resolver/responseTemplate (39.73s)
--- PASS: TestAccAppSync_serial/Type (44.96s)
--- PASS: TestAccAppSync_serial/Type/basic (25.07s)
--- PASS: TestAccAppSync_serial/Type/disappears (19.89s)
--- PASS: TestAccAppSync_serial/DomainNameAssociation (0.00s)
--- SKIP: TestAccAppSync_serial/DomainNameAssociation/disappears (0.00s)
--- SKIP: TestAccAppSync_serial/DomainNameAssociation/basic (0.00s)
--- PASS: TestAccAppSync_serial/APIKey (92.80s)
--- PASS: TestAccAppSync_serial/APIKey/expires (32.78s)
--- PASS: TestAccAppSync_serial/APIKey/basic (22.94s)
--- PASS: TestAccAppSync_serial/APIKey/description (37.08s)
--- FAIL: TestAccAppSync_serial/DataSource (364.60s)
--- PASS: TestAccAppSync_serial/DataSource/description (33.87s)
--- PASS: TestAccAppSync_serial/DataSource/Type_eventBridge (21.05s)
--- PASS: TestAccAppSync_serial/DataSource/DynamoDB_useCallerCredentials (46.23s)
--- PASS: TestAccAppSync_serial/DataSource/Type_http (21.15s)
--- PASS: TestAccAppSync_serial/DataSource/Type_http_auth (21.47s)
--- FAIL: TestAccAppSync_serial/DataSource/Type_rdbms_options (2.02s)
--- PASS: TestAccAppSync_serial/DataSource/basic (21.04s)
--- PASS: TestAccAppSync_serial/DataSource/HTTP_endpoint (33.96s)
--- PASS: TestAccAppSync_serial/DataSource/type (28.90s)
--- PASS: TestAccAppSync_serial/DataSource/Type_lambda (34.14s)
--- PASS: TestAccAppSync_serial/DataSource/DynamoDB_region (47.97s)
--- PASS: TestAccAppSync_serial/DataSource/Type_dynamoDB (30.15s)
--- PASS: TestAccAppSync_serial/DataSource/Type_none (20.65s)
--- FAIL: TestAccAppSync_serial/DataSource/Type_rdbms (2.00s)
--- PASS: TestAccAppSync_serial/ApiCache (1466.53s)
--- PASS: TestAccAppSync_serial/ApiCache/basic (729.36s)
--- PASS: TestAccAppSync_serial/ApiCache/disappears (737.17s)
--- PASS: TestAccAppSync_serial/DomainName (0.00s)
--- SKIP: TestAccAppSync_serial/DomainName/basic (0.00s)
--- SKIP: TestAccAppSync_serial/DomainName/disappears (0.00s)
--- SKIP: TestAccAppSync_serial/DomainName/description (0.00s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/appsync 3689.686s
FAIL
make: *** [testacc] Error 1
Failures are unrelated to this change.
@acwwat Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.37.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR introduces the
introspection_config
,query_depth_limit
, andresolver_count_limit
arguments to theaws_appsync_graphql_api
resource to support the GraphQL run complexity, query depth, and introspection features.Relations
Closes #35550
References
Referred to https://docs.aws.amazon.com/appsync/latest/devguide/configuration-limits.html to understand the settings and CreatGraphqlApi API doc for spec.
Output from Acceptance Testing
$ make testacc TESTS=TestAccAppSync_serial/GraphQLAPI PKG=appsync
==> Checking that code complies with gofmt requirements...