cfn-lint version: (cfn-lint --version)
cfn-lint 0.28.1
Description of issue.
Using the following CFN resource leads to the above mentioned linting error:
D2VApiSchema:
Type: AWS::AppSync::GraphQLSchema
Properties:
ApiId: !GetAtt D2VApi.ApiId
DefinitionS3Location: Graphql/schema.graphql
Please provide as much information as possible:
cfn-lint and/or the latest Spec filesCfn-lint uses the CloudFormation Resource Specifications as the base to do validation. These files are included as part of the application version. Please update to the latest version of cfn-lint or update the spec files manually (cfn-lint -u)
AWS::AppSync::GraphQLSchema is in the latest Resource Specification, and I'm unable to reproduce this error using cfn-lint 0.28.1 with this template:
Resources:
D2VApiSchema:
Type: AWS::AppSync::GraphQLSchema
Properties:
ApiId: !GetAtt D2VApi.ApiId
DefinitionS3Location: Graphql/schema.graphql
Commands like these will update your Linter version and Resource Specifications:
pip3 install cfn-lint --upgrade
cfn-lint --update-specs
If you're still experiencing this error with cfn-lint 0.28.1, is there a particular region you're linting with? I'm only able to reproduce this in some regions other than the us-east-1 default
I am using the following linter configuration:
Metadata:
cfn-lint:
config:
regions:
- eu-central-1
ignore_checks:
- W2001 # ignore warnings about unused parameters
- W7001 # ignore warnings about unused mappings
I am working in AWS region "eu-central-1" where this problem seems to occur. I can confirm that this problem does not appear when using AWS region "us-east-1".
AWS::AppSync::GraphQLSchema is indeed not in the eu-central-1 Resource Specification
Are you able to successfully deploy that resource type in eu-central-1?
I am able to successfully deploy that resource type in eu-central-1.
AWS::AppSync::GraphQLSchema is now in the eu-central-1 Resource Specification:
cfn-lint --update-specs