public bool CreateHostedZone(string zoneName) { try { AwsRoute53Commands r53 = new AwsRoute53Commands(logger, awsProfile); HostedZoneInformation zoneInfo = r53.createHostedZoneAsync(zoneName); r53.create_A_ResourceRecords(zoneInfo.Id, zoneInfo.Name); return(true); } catch (Exception ex) { logger.LogError(string.Format("Failed to create hosted zone.\n{0}\n{1}", ex.Message, ex.StackTrace)); return(false); } }