AWS CloudFormation example templates which creates VPC resources for Amazon Elasticsearch Service in VPC. If you deploy Amazon ES in VPC, you need to setup some AWS resources to access it from Internet. Amazon ES instances sometimes change IP address. Then you need to maintain accessbility. This example resolves this isseue. EventBridge detects Amazon ES instance changing and Lambda function updates target group with new ip addresses. This cloudformation don't depoloy Amazon ES instances.
- Create SSL certificate with AWS Certificae Manger for ALB
- Deploy with this CloudFormation Stack
- Deploy Amazon ES domain
- Optional) Set custom endpoint and dns.
- HTTPS Access ALB address to access kibana
cd glone
mkdir templates
source .venv/bin/activate
pip3 install -r requirements.txt
cdk synth vpc-multi-az --path-metadata false > cloudformation_template/vpc-multi-az.template
cdk synth vpc-multi-az-with-fw --path-metadata false > cloudformation_template/vpc-multi-az-with-fw.template
cdk synth vpc-single-az --path-metadata false > cloudformation_template/vpc-single-az.template
cdk synth vpc-single-az-with-fw --path-metadata false > cloudformation_template/vpc-single-az-with-fw.template