Skip to content

Commit

Permalink
added developer file
Browse files Browse the repository at this point in the history
  • Loading branch information
hrai-nr committed Nov 22, 2024
1 parent 2303c65 commit 871daa8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# aws-unified-firehose
Forwards logs from cloudwatch to NewRelic through Amazon Data Firehose

## Requirements

- SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)

## Deployment

To try this integration out you can use the `sam` cli to deploy the cloudformation template (`firehose-template.yml`). Make sure **aws is properly authenticated with an account of your choice**.

## Building and packaging
To build and package, follow these steps:
1. Authenticate with your aws account details
2. Create an S3 bucket with a unique name, e.g., `test123`.
3. Build the project:
```sh
sam build --template-file firehose-template.yaml
```
4. The build will be located by default at `.aws-sam/build`, and a template file will be created with the name `template.yaml`.
5. Package the project:
```sh
sam package --s3-bucket test123 --template-file .aws-sam/build/template.yaml --output-template-file firehose-template.yaml --region us-east-2
```
6. Copy the main template file to the S3 bucket:
```sh
aws s3 cp .aws-sam/build/firehose-template.yaml s3://test123/firehose-template.yaml
```

0 comments on commit 871daa8

Please sign in to comment.