I have a DaaS that will be polling a service in AWS. For security reasons, we only want this service to be accessible from a limited IP range.
Will my DaaS always be polling from a fixed IP (range)? If so, where can I find this IP (range)?
Hi Matthijs,
If your DaaS polls an AWS service, it will use a public IP assigned by Azure. As long as the VM is running, this IP stays the same, even if you restart DataMiner (which doesn’t restart the VM). IF the VM is stopped completely, the IP might change unless it's set to static. You can check the current IP using a simple automation script like this:
private void RunSafe(IEngine engine)
{
using (HttpClient client = new HttpClient())
{
try
{
string ip = client.GetStringAsync("https://api.ipify.org").GetAwaiter().GetResult();
engine.GenerateInformation($"Public IP Address: {ip}");
}
catch (Exception ex)
{
engine.GenerateInformation($"Error retrieving IP: {ex.Message}");
}
}
}
You could also create an automation script to update the AWS whitelist dynamically, but I don't think that will be necessary in this case.