# terraform-sentry

This module can be used to create new sentry project and sentry dsn for the microservices. Using this module will automatically create sentry dsn resource in secrets manager and will output the public dsn key(will not be exposed) and store it to secrets manager.

Secrets manager resource is created using this format.
```
environment/service_name/SENTRY_DSN
```

#### Import existing SENTRY_DSN from SecretsManager.
```
terraform import module.sentry_module.aws_secretsmanager_secret.sentry_dsn_secret arn:aws:secretsmanager:us-east-1:103233932089:secret:dev/service_name/SENTRY_DSN
```

#### Import existing project
```
terraform import module.sentry_module.sentry_project.sentry_project_name organization/project_slug

Example:
terraform import module.sentry_module.sentry_project.sentry_project_name the-orchard/qa-ows-podcast
```
