You can easily do this through the Amazon web console. If you need configuration, just click "Save Configuration". You can then use the edit / load configuration to redirect it to new environments.

If you use elastic beanstalk command-line tools when you set up your environment using the git aws.config command, it creates a directory named .elasticbeanstalk with a file in it called config, which looks like this:
[global] AwsCredentialFile=/path/to/file/with/aws/account/credentials ApplicationName=YourAppName DevToolsEndpoint=git.elasticbeanstalk.your-region-name.amazonaws.com EnvironmentName=yourEnvName Region=your-region-name
Hope this helps!
source share