Open vishwasnavadak opened 3 years ago
Pinging @getsentry/ecosystem for triage
Ping @getsentry/growth for triage :)
We currently don't support AWS Lambda on self-hosted (we need docs to explain how to set it up). This is in our backlog but I'm not sure when we'll get to it.
Thanks for letting me know!
I was hoping this could have been mentioned somewhere before I struggled to set it up.
@scefali Think this is something we can contribute to? Happy to make PR if you point me in the right direction.
interested in this procedure as well
Does anyone know how to set this up?
Any update about this issue? I have the same problem trying to integrate Sentry Self-Hosted with AWS Lambda Functions.
I'm having the same issue as described above with a self-hosted sentry environment. Unable to add the installation with a cloud formation template from sentry. Is there any update of work-around for this issue?
Is it possible to share the url where this template is hosted?? While googling this issue I found an example where the template url is shared, but this is one is not active any more.. this url was: https://s3.us-east-1.amazonaws.com/sentry-performance-monitoring/cloudformation-template.yaml
I just created a test account on sentry.io on the cloud edition of sentry and when I start this aws integration I now get the templateUrl parameter with a value: templateURL=https%3A%2F%2Fsentry-cloudformation-templates.s3.us-east-2.amazonaws.com%2Flambda-cloudformation.json
The cloudformation template deploys correct, but I cannot connect with the self-hosted sentry to my aws account, I get the following error:
When I use the same settings on the cloud edition of sentry, connecting to my aws account does work.
So could this issue please get some more attention?
@ivdmeer it's tagged as backlog. Dev replied earlier in thread: https://github.com/getsentry/sentry/issues/24821#issuecomment-816112452
Routing to @getsentry/product-owners-settings-integrations for triage ⏲️
https://sentry-cloudformation-templates.s3.us-east-2.amazonaws.com/lambda-cloudformation.json This url works for me. just add it at the end of url.
@dhavaljbroadlume That JSON file will give permissions to the Sentry role in the Sentry AWS account, it won't work for other people
So, there's a catch with that sentry stack, basically you just need a SentryRole(will be created using the above template). but, as @scefali suggested, that was the exact thing with my issue, it was giving access in sentry aws account. Following setup is working for me just fine with any region!
Add below things in config.yml and reinstall sentry( docker compose down && ./install.sh && docker compose up -d) config.yml
# AWS Lambda Integration
aws-lambda.access-key-id: "YOUR_ACCESS_KEY_ID"
aws-lambda.secret-access-key: "YOUR_SECRET_ACCESS_KEY"
aws-lambda.node.layer-name: "SentryNodeServerlessSDK" // Lambda Layer will be created with this name.
aws-lambda.node.layer-version: "264" // Default version
# the region of the host account we use for assuming the role
aws-lambda.host-region: "us-east-2" // Default region, optional i guess
# aws-lamda.cloudformation-url: "https://sentry-cloudformation-templates.s3.us-east-2.amazonaws.com/lambda-cloudformation.json" // Just keeping this here for doc.
Important Details
How are you running Sentry?
On-Premise w/ Docker, version 21.3.0 96d5172
Description
Clicking on
Go to AWS
button on AWS Integration page goes to TemplateURL missing error.Steps to Reproduce
Go to Settings
Navigate to Integration from left sidebar.
Click on
Add Integration
for AWS LambdaPop Up appears with
Click on
Go To AWS
Login with AWS credentials
CloudFormation Page appears with the error since the templateURL in the URL is blank.
Good items to include here include:
sentry.conf.py
andconfig.yml
files) when relevantWhat you expected to happen
templateURL is supposed to be populated with link to the CloudFormation template file. But it is indeed blank.
stackName=Sentry-Monitoring-Stack&templateURL=