Docker CloudWatch Logs
Setting up AWS CloudWatch logging driver for Docker
bonder:
image: hopprotocol/hop-node:mainnet
env_file:
- docker.env
restart: unless-stopped
volumes:
- /home/ubuntu/.hop:/root/.hop
logging:
driver: awslogs
options:
awslogs-region: us-east-1
awslogs-group: HopNode
awslogs-create-group: 'true'docker run \
--detach \
--name hop-node \
--restart=unless-stopped \
--log-driver=awslogs \
--log-opt awslogs-region=us-east-1 \
--log-opt awslogs-group="HopNode" \
--log-opt awslogs-create-group=true \
--env-file docker.env \
-v ~/.hop:/root/.hop \
hopprotocol/hop-node:mainnetIAM CloudWatch Logs Policy Setup
Create EC2 role
Attach IAM role to ec2
Get log group ARN
Create IAM user to view logs
View CloudWatch logs
Last updated