https://github.com/smithclay/packer-newrelic-infrastructure
Example packer configuration for AWS Linux/Ubuntu with New Relic Infrastructure
https://github.com/smithclay/packer-newrelic-infrastructure
Last synced: about 1 year ago
JSON representation
Example packer configuration for AWS Linux/Ubuntu with New Relic Infrastructure
- Host: GitHub
- URL: https://github.com/smithclay/packer-newrelic-infrastructure
- Owner: smithclay
- Created: 2016-11-02T23:01:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-03T17:44:20.000Z (over 9 years ago)
- Last Synced: 2025-02-08T16:43:47.418Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# New Relic Infrastructure + Packer on AWS Example
This script and Packer configuration file will create an Amazon Linux AMI image in the us-west-2 availability zone.
The AMI image will be configured with New Relic Infrastructure connected to an account (via the license key).
### Requirements
* New Relic Account + [License Key](https://docs.newrelic.com/docs/accounts-partnerships/accounts/account-setup/license-key)
* An AWS Account
* Packer by Hasicorp (download [here](https://www.packer.io/downloads.html)).
### Building the image
Building the image requires the New Relic License Key, AWS Key, and AWS Secret. They can be specified directly in the command line.
After cloning this repository, run the packer command in this directory with the correct variable values:
```sh
packer build -var 'aws_access_key=' -var 'aws_secret_key=' -var 'newrelic_license_key=' aws-linux-us-west-2.json
```
If this command succeeded, Packer will output an AWS AMI ID. Use this AMI to launch a new EC2 instance (see below).
### Starting an EC2 Instance with the Image
If Packer succeeded, the AMI will be listed in the EC2 Management Console. Select it and launch a new instance:

After a few minutes, the EC2 host that was just created will appear in New Relic Infrastructure:

### Customizing
The script, `infra-install.sh`, should work for ubuntu or debain-based Linux distrubutions as well. The AWS AMI image ID in the `.json` file and the default user name (`ec2-user`) will need to be updated.
Note: This is strictly for demo purposes, and is not an offically supported method to install New Relic infrastructure. For the official, most up-to-date documentation, go here: https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/installation/install-infrastructure-linux