in apply/src/awsqs_kubernetes_resource/utils.py [0:0]
def http_get(url):
try:
response = requests.get(url)
except requests.exceptions.RequestException as e:
raise RuntimeError(f"Failed to fetch CustomValueYaml url {url}: {e}")
if response.status_code != 200:
raise RuntimeError(
f"Failed to fetch CustomValueYaml url {url}: [{response.status_code}] "
f"{response.reason}"
)
return response.text