I am using the standard "Publish to AWS Elastic Beanstalk ..." feature provided by the AWS Toolkit extension for Visual Studio, however I also need to deploy a credential file to the root of the C: directory for proper access to the S3 API.
If I simply remote into the instance and add the file, then it will only last until Amazon recycles the cloud instance and then spawns a new one to replace it, meaning that the application is broken until I remote into the new instance and make a new file.
It would be nice to have the server automatically run a PowerShell script that handles this and other configuration tasks either when the server instance is created or when it starts up. Is there a way that this can be set up by using the AWS Toolkit? I was able to find documentation that seemed relevant, but I couldn't figure out how to get it to work with the VS extension that I'm using:
Or maybe I'm on the wrong path, and I need to make a custom AMI for this?