Hi everyone, I work in DevOps and spend most of my time on a local laptop running Ubuntu 22.04 and a Linux server. Where can I have an in-depth comprehension of the script side section for batter in Bash script? I've worked for almost 4 years overall.
@Artfaith Yes, based on the suggestion, I will work on it. This approach should work for me. I will capture all the data using the tee command, and with the help of the AWS CLI, I will directly upload it to S3. For example, my command would be ./run_install.sh | tee log.txt.
@louigi600 Yes, using an S3 bucket is a better option when dealing with AWS servers. However, the issue is that there is currently no AWS IAM user configured for uploading to S3. Despite that, this option is still better than wasting time trying to find another way.
The script based on Yocto image build for IoT device operating system create with custom modules and components. It produces a lot of logs, and I am using AWS spot server, for troubleshooting logs and check error, I want to store this file somewhere to help developer to understand Error.
I executed a build.sh file on my AWS spot instance, which gets terminated after some time. During execution, a custom AMI is created, and a log file is generated. Before the server terminates, is there any way I can store these logs?