Is there a way to make file changes in AWS EC2 instance using GitLab?

Is there a way to integrate GitLab and AWS EC2 where when I make changes in my repository it also gets updated in the EC2 file structure?

For eg: File structure in EC2 using Linux: /opt has a file (somefunction.js) /etc has a file (someConfig.conf)

If I make changes to these files and push them to my GitLab repo these should automatically get updated in my EC2 instance rather than drag-dropping these files or manually adding them

Any help would be highly appreciated

For updating configuration files in such a situation, you would need to be using something similar to Ansible to take care of that for you.

1 Like

Thanks @iwalker will surely look into it if you have a guide/doc related to it can you pls share would be really helpfull