...
Code Block |
---|
files: "/tmp/breeze-agent.tgz": source: https://elasticbeanstalk-us-east-1-123456789098.s3.amazonaws.com/breeze-agent.tgz authentication: S3Auth commands: "install breeze agent": test: test ! -d /opt/breeze-agent command: tar -xf /tmp/breeze-agent.tgz -C /tmp && /tmp/breeze-agent/install.sh Resources: AWSEBAutoScalingGroup: Metadata: AWS::CloudFormation::Authentication: S3Auth: type: "s3" buckets: ["elasticbeanstalk-us-east-1-123456789098"] roleName: "Fn::GetOptionSetting": Namespace: "aws:autoscaling:launchconfiguration" OptionName: "IamInstanceProfile" DefaultValue: "aws-elasticbeanstalk-ec2-role" |
...
This configuration file contains 3 sections: Files, Commands and Resources (AWS).
The Files section delivers Breeze Agent installer to the instance from S3 bucket.
The Commands section installs the Breeze Agent.
The Resources section creates an authentication role that allows access to the bucket with Breeze Agent installers to the Elastic Beanstalk.
For more configuration options see AWS documentation.
3. Deploy application with new .ebextension config.
...