public bool CreateParentNsRecord(string fullName, string parentName) { try { AwsRoute53Commands r53 = new AwsRoute53Commands(logger, awsProfile); r53.copyNsRecordsFromSubDomainToParentDomain(fullName, parentName); return(true); } catch (Exception ex) { logger.LogError(string.Format("Failed to create parent NS record.\n{0}\n{1}", ex.Message, ex.StackTrace)); return(false); } }
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); } }