Skip to content
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

Bug: unknown resource type: AWS::CloudFormation::LambdaHook #7729

Open
jftjamf opened this issue Nov 22, 2024 · 1 comment
Open

Bug: unknown resource type: AWS::CloudFormation::LambdaHook #7729

jftjamf opened this issue Nov 22, 2024 · 1 comment
Labels
area/validate sam validate command stage/waiting-for-release Fix has been merged to develop and is waiting for a release

Comments

@jftjamf
Copy link

jftjamf commented Nov 22, 2024

Description:

sam does not know about the AWS::CloudFormation::LambdaHook resource type. Can you please update the program to include this resource type?

Steps to reproduce:

$ sam validate --lint -t template.yaml

[[E3006: Validate the CloudFormation resource type] (Resource type 'AWS::CloudFormation::LambdaHook' does not exist in 'us-east-1') matched 385]
Error: Linting failed. At least one linting rule was matched to the provided template.

However, sam deploy will successfully deploy this resource type.

Expected result:

I expect sam to know about this resource type and return an exit value of 0.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: MacOS 15.1.1
  2. sam --version: SAM CLI, version 1.130.0
  3. AWS region: us-east-1
{
  "version": "1.130.0",
  "system": {
    "python": "3.8.20",
    "os": "macOS-15.1.1-arm64-arm-64bit"
  },
  "additional_dependencies": {
    "docker_engine": "Not available",
    "aws_cdk": "2.99.0 (build 0aa1096)",
    "terraform": "Not available"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

@jftjamf jftjamf added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Nov 22, 2024
@lucashuy
Copy link
Contributor

Hey, thanks for raising this issue. We've updated cfn-lint to a newer version (in #7706), however this has not made it out to a release yet.

Please stay tuned for a new version of SAM CLI, in the mean time you can consider using cfn-lint manually (https://github.com/aws-cloudformation/cfn-lint), or you can omit --lint to just check if the template is syntactically correct.

@lucashuy lucashuy added area/validate sam validate command stage/waiting-for-release Fix has been merged to develop and is waiting for a release and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/validate sam validate command stage/waiting-for-release Fix has been merged to develop and is waiting for a release
Projects
None yet
Development

No branches or pull requests

2 participants