Collection of custom ebextensions.
One-file configuration for elastic beanstalk windows environment that enable IIS log and clean old files.
- Enables IIS log
- Set log period to hourly
- Set log format to IIS
- Creates an scheduled task that deletes log files older than a specified date and time
Configure how long log files should live
$logFilesTimeToLiveInHours = 1
Just put this file inside an folder named .ebextensions
This default version runs the task every 20 minutes, it can be changed in the container command named: 04_schedule_iis_removal-task.
Other customizations are still possible, just modify as you want.
Conttibutions are always welcome.
Gets the ELB in which the EC2 instance is attached to and the EC2 instance id
It will generate 2 files with those informations:
C:\tools\BeanstalkELBDNSName.datcontains the Load Balancer DNSC:\tools\EC2InstanceID.datcontains the EC2 instance id
Installs Chocolatey package manager
Installs etcd
It defaults to proxy mode
The following are the default values. Modify them to customize the etcd proxy connection to your needs:
$discoverySRV = "vtexlab.com.br"
$clientURL = "http://127.0.0.1:4001"
Also, you can alter the whole $params variable to fully customize the etcd cluster
Handles a directory permission for a given user
Default configurations:
$directory = "C:\\tools"
$user = "NT AUTHORITY\NETWORK SERVICE"
Sets a scheduled task to run every 1 minute that handles etcd proxy connection fails
Default configurations:
$etcdClientURL = "http://127.0.0.1:4001"
$etcdDiscoverySRV = "vtexlab.com.br"
Sets a scheduled task to announce the service to the VTEX Router/API Gateway every 1 minute.
It uses the ELB DNS name from the get_beanstalk_load_balancer.config extension. It also depends on a running
etcd proxy to the API Gateway cluster.