This is a simple program writing in go to upload 'as-set-v4.juniper.update' to s3 bucket.
- Create a s3 bucket
- Create a IAM user with s3 write permission
- write a .env file with the following content:
MINIO_ENDPOINT=
MINIO_ACCESS_KEY=
MINIO_SECRET_KEY=
MINIO_BUCKET_NAME=
- write a
update.lists
file with the following content:
as-set
as65535
as65536
Output should be like this:
go run .
Successfully uploaded as-set-v4.juniper.update to `as-set-v4.juniper.update` of bucket `your-bucket-name`
load replace https://s3.amazonaws.com/your-bucket-name/as-set-v4.juniper.update