This repository contains things you can use for running OpenObserve on AWS ec2 instances without a Kubernetes cluster.
This script does following:
- Creates an s3 bucket
- Creates an IAM policy
- Creates an IAM role and associates this role with the policy created in step 2. This role has a trust relation for ec2.
You can attach the IAM role created above to your ec2 instance. This will allow OpenObserve running on the ec2 instance to access s3 for read/write.
You can either use GUI or CLI.
You can attach the IAM role to an EC2 instance using the AWS CLI with this command:
aws ec2 associate-iam-instance-profile --instance-id YOUR_INSTANCE_ID --iam-instance-profile Name=OpenObserveRole
You can get your instance ID using:
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId]' --output text
Once you have the IAM role attached to your EC2 instance run the below command to start OpenObserve:
ZO_ROOT_USER_EMAIL="root@example.com" ZO_ROOT_USER_PASSWORD="Complexpass#123" ZO_S3_BUCKET_NAME=$bucket_name ./openobserve