title: RedisConnectionException : .net core connecting to Redis Cache in AWS
body: <p>While connecting to redis cache in AWS I am getting following error. On localhost it works fine.  Can any suggest whats going wrong.  </p>
  
  <p>We do have VPC on AWS, can access other resources like VPC but could not connect to Redis cluster.</p>
  
  <blockquote>
    <p>.Redis.RedisConnectionException: It was not possible to connect to the
    redis server(s); to create a disconnected multiplexer, disable
    AbortOnConnectFail. SocketFailure on PINGat
    StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(Func<code>1
    multiplexerFactory, TextWriter log) in
    c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line
    890at StackExchange.Redis.ConnectionMultiplexer.Connect(String
    configuration, TextWriter log) in
    c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line
    855at
    TeamSports.Shared.CacheManager.RedisConnectionFactory.&lt;&gt;cDisplayClass1_0.&lt;.ctor&gt;b0()at
    System.Lazy</code>1.ViaFactory(LazyThreadSafetyMode mode)at
    System.Lazy<code>1.ExecutionAndPublication(LazyHelper
    executionAndPublication, Boolean useDefaultConstructor)at
    System.Lazy</code>1.CreateValue()at
    TeamSports.Shared.CacheManager.RedisConnectionFactory.Connection()at
    TeamSports.Shared.CacheManager.CacheManager..ctor(IConfigurationManager
    configurationManager, IHostingEnvironment environment, ILogger`1
    logger</p>
  </blockquote>