Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #486 from wrijeff/v0.8.x
Browse files Browse the repository at this point in the history
Fixed CFN template to be compatible with v0.8.x changes.
  • Loading branch information
wrijeff authored Apr 6, 2021
2 parents 861453e + e67843d commit 63034a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions deployment-template/ec2/data-prepper-ec2-deployment-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ Resources:
- 01_config-data-prepper
01_config-data-prepper:
files:
"/etc/data-prepper/config.yaml":
"/etc/data-prepper/data-prepper-config.yaml":
content: !Sub |
ssl: false
mode: "000400"
owner: root
group: root
"/etc/data-prepper/pipelines.yaml":
content: !Sub |
entry-pipeline:
delay: "100"
Expand Down Expand Up @@ -126,7 +132,7 @@ Resources:
wget https://github.com/opendistro-for-elasticsearch/data-prepper/releases/download/v${DataPrepperVersion}/$RELEASE.tar.gz -O /tmp/$RELEASE.tar.gz
tar -xzf /tmp/$RELEASE.tar.gz --directory /usr/local/bin
/opt/aws/bin/cfn-init -v --stack ${AWS::StackId} --resource EC2Instance --region ${AWS::Region} --configsets default
nohup /usr/local/bin/$RELEASE/data-prepper-tar-install.sh /etc/data-prepper/config.yaml > /var/log/data-prepper.out &
nohup /usr/local/bin/$RELEASE/data-prepper-tar-install.sh /etc/data-prepper/pipelines.yaml /etc/data-prepper/data-prepper-config.yaml > /var/log/data-prepper.out &
/opt/aws/bin/cfn-signal --stack ${AWS::StackId} --resource EC2Instance --region ${AWS::Region}
CreationPolicy:
ResourceSignal:
Expand Down

0 comments on commit 63034a6

Please sign in to comment.