Skip to content

Commit

Permalink
Config aid.
Browse files Browse the repository at this point in the history
  • Loading branch information
camitz committed Jan 7, 2015
1 parent 1db287c commit 1f5cf4f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
22 changes: 15 additions & 7 deletions App.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<appSettings>
<!--Specify region end point-->
<add key="AWSRegion" value="eu-west-1" />
<add key="AWSLogging" value="log4net" />
<add key="AWSProfileName" value="simpletask"/>
<add key="AWSProfilesLocation" value="C:\aws_service_credentials\credentials"/>
<!--Uncomment for debug logging from AWS-->
<!--<add key="AWSLogging" value="log4net" />-->

<!--Uncomment for specifying credentials via file. Recommended practice is using a role or AWS store.-->
<!--<add key="AWSProfileName" value="simpletask"/>
<add key="AWSProfilesLocation" value="C:\aws_service_credentials\credentials"/>-->
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
Expand All @@ -27,16 +31,20 @@
</layout>
</appender>
<root>
<level value="ALL" />
<!--Set to ALL or INFO, for debugging.-->
<level value="OFF" />

<appender-ref ref="FileAppender" />
<appender-ref ref="ConsoleAppender" />
</root>
</log4net>
<system.net>
<defaultProxy enabled="true">
<!--If you're using fiddler to redirect your requests, uncomment this.-->
<!--<defaultProxy enabled="true">
<proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/>
</defaultProxy>
</system.net> <runtime>
</defaultProxy>-->
</system.net>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AWSSDK" publicKeyToken="9f476d3089b52be3" culture="neutral" />
Expand Down
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,27 @@ Credentials and region is specified through any means available by AWS .net sdk,
<add key="AWSRegion" value="eu-west-1" />
</appSettings>

If you'd like to debug this app locally, see the [MockECSInstanceMetaData](https://github.com/camitz/MockEC2InstanceMetaData) project.
or using a credentials file:

<appSettings>
<add key="AWSRegion" value="eu-west-1" />
<add key="AWSProfileName" value="simpletask"/>
<add key="AWSProfilesLocation" value="C:\aws_service_credentials\credentials"/>
</appSettings>


##Command line

Just do

SpotStop2SNS.exe -Start

##Windows binaries and installer

An installer can be downloaded [here](https://github.com/camitz/EC2SpotStop2SNS/releases/latest) which will install the application as a windows service.

##Related blog post
##Related

[Ec2spotstop2sns](http://blog.simpletask.se/post/ec2spotstop2sns) on Cosmik Debris.
[Ec2spotstop2sns](http://blog.simpletask.se/post/ec2spotstop2sns) on Cosmik Debris.

If you'd like to debug this app locally, see the [MockECSInstanceMetaData](https://github.com/camitz/MockEC2InstanceMetaData) project.

0 comments on commit 1f5cf4f

Please sign in to comment.