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

Utilise serverless-offline-ssm to fix local development #1

Open
jch254 opened this issue Jul 22, 2023 · 2 comments
Open

Utilise serverless-offline-ssm to fix local development #1

jch254 opened this issue Jul 22, 2023 · 2 comments

Comments

@jch254
Copy link
Owner

jch254 commented Jul 22, 2023

Currently running locally does not work as expected due to incompatibility with serverless-offline and ssm: variables - dherault/serverless-offline#1647. A suggested solution is to use this package https://www.serverless.com/plugins/serverless-offline-ssm

@jch254
Copy link
Owner Author

jch254 commented Jul 22, 2023

Workaround is to comment SSM vars in serverless.yml. E.g.

functions:
  handler:
    handler: src/index.handler
    memorySize: 256
    timeout: 900
    # environment:
    #   DISCOGS_USER_TOKEN: ${ssm:/discogs-market-monitor/discogs_user_token}
    #   SENDGRID_API_KEY: ${ssm:/discogs-market-monitor/sendgrid_api_key}
    #   DISCOGS_USERNAME: ${ssm:/discogs-market-monitor/discogs_username}
    #   SHIPS_FROM: ${ssm:/discogs-market-monitor/ships_from}
    #   DESTINATION_EMAIL: ${ssm:/discogs-market-monitor/destination_email}
    #   SENDER_EMAIL: ${ssm:/discogs-market-monitor/sender_email}

@jch254
Copy link
Owner Author

jch254 commented Apr 7, 2024

Using parameter store secrets as done in https://github.com/jch254/market-monitor-api also allows running locally

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

1 participant