This Packer template will create an Amazon Web Service AMI configured as a Delphix ready Postgresql server. It uses Amazon Linux 2.0 and Postgres 9.6.
After Packer and the AWS CLI tools are installed (see Links section), create environment variables for AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, and AWS_REGION
. Alternatively, you can run aws configure
to set up the AWS CLI. Packer will use this in lieu of ENV variables.
export AWS_ACCESS_KEY_ID = ***your aws access key id***
export AWS_SECRET_ACCESS_KEY = ***your aws access secret key***
export AWS_REGION = ***your aws region***
Clone the repo into a working directory
git clone https://github.com/delphix/packer-postgres-host-template
cd packer-postgres-host-template
After Packer and AWS CLI are installed, navigate to the working directory and run:
packer build main.json
This will build an AMI names delphix-postgres-
followed by a timestamp. After the AMI is created, you will be able to launch and EC2 instance from it. Once the EC2 instance is running, postgres
will be installed and running. You should login as the postgres user and set a password.
- Fork the project.
- Make your bug fix or new feature.
- Add tests for your code.
- Send a pull request.
Contributions must be signed as User Name <user@email.com>
. Make sure to set up Git with user name and email address. Bug fixes should branch from the current stable branch. New features should be based on the master
branch.
This project operates under the Delphix Code of Conduct. By participating in this project you agree to abide by its terms.
All contributors are required to sign the Delphix Contributor agreement prior to contributing code to an open source repository. This process is handled automatically by cla-assistant. Simply open a pull request and a bot will automatically check to see if you have signed the latest agreement. If not, you will be prompted to do so as part of the pull request process.
Issues should be reported here.
This software is provided as-is, without warranty of any kind or commercial support through Delphix. See the associated license for additional details. Questions, issues, feature requests, and contributions should be directed to the community as outlined in the Delphix Community Guidelines.
This is code is licensed under the Apache License 2.0. Full license is available here.