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

Unable to deploy via SAM. Getting error "Plugin 'ServerlessAppPlugin' raised an exception: AWS Region cannot be found" #61

Open
afs25 opened this issue Oct 16, 2023 · 1 comment

Comments

@afs25
Copy link

afs25 commented Oct 16, 2023

Hi, I'm trying to deploy SAR-Lambda-Janitor via a SAM template. I've added it to the Resources section of my SAM template:

Resources:
  SarLambdaJanitor:
    Type: AWS::Serverless::Application
    Properties:
      Location:
        ApplicationId: arn:aws:serverlessrepo:us-east-1:374852340823:applications/lambda-janitor
        SemanticVersion: 1.5.0
      Parameters:
        VersionsToKeep: 3

However, when I run:
$ sam build --debug -t ./template.yaml

I am seeing the error:
Plugin 'ServerlessAppPlugin' raised an exception: AWS Region cannot be found

I am not sure how to solve this. Any help would be much appreciated. Thank you!

@pedroGenio
Copy link

same error for SemanticVersion: 1.6.1

$ sam deploy --guided

2024-04-16 11:06:26 Plugin 'ServerlessAppPlugin' raised an exception: AWS Region cannot be found Traceback (most recent call last): File "samtranslator/plugins/sam_plugins.py", line 130, in act File "samtranslator/metrics/method_decorator.py", line 116, in wrapper_cw_timer File "samtranslator/plugins/application/serverless_app_plugin.py", line 150, in on_before_transform_template File "samtranslator/region_configuration.py", line 48, in is_service_supported samtranslator.translator.arn_generator.NoRegionFound: AWS Region cannot be found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants