elegant-dress-32875
01/24/2023, 6:24 PM> python hellworld.py run
Metaflow 2.7.19 executing HelloAWSFlow for user:sderosa
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Metaflow service error:
Metadata request (/flows/HelloAWSFlow) failed (code 403): {"message":"Forbidden"}
if i remove my ~/.metaflowconfig , i can run the helloworld flow no problem. Then when i copy it back, i get the same 403 error. I can aws s3 cp without any issues. Any idea whats going on ?dry-beach-38304
01/24/2023, 6:27 PM.metaflowconfig have? It may have something related to SERVICE_AUTH_KEY or SERVICE_HEADERS.elegant-dress-32875
01/24/2023, 6:40 PM"METAFLOW_DEFAULT_DATASTORE"
"METAFLOW_DEFAULT_METADATA"
"METAFLOW_DATASTORE_SYSROOT_S3"
"METAFLOW_DATATOOLS_S3ROOT"
"METAFLOW_BATCH_JOB_QUEUE"
"METAFLOW_BATCH_INF_JOB_QUEUE"
"METAFLOW_ECS_S3_ACCESS_IAM_ROLE"
"METAFLOW_SERVICE_URL"
"METAFLOW_SERVICE_INTERNAL_URL"
"METAFLOW_EVENTS_SFN_ACCESS_IAM_ROLE"
"METAFLOW_SFN_IAM_ROLE"
"METAFLOW_SFN_DYNAMO_DB_TABLE"
"METAFLOW_ECS_FARGATE_EXECUTION_ROLE"
"METAFLOW_UI_URL"elegant-dress-32875
01/24/2023, 6:41 PMelegant-dress-32875
01/24/2023, 6:42 PMelegant-dress-32875
01/24/2023, 6:46 PMdry-beach-38304
01/24/2023, 7:19 PMelegant-dress-32875
01/25/2023, 6:45 PMaverage-beach-28850
01/25/2023, 7:10 PMaverage-beach-28850
01/25/2023, 7:12 PMcurl a few times to see if that works or you get 403, or you get an intermittent 403average-beach-28850
01/25/2023, 7:12 PMaverage-beach-28850
01/25/2023, 7:13 PMelegant-dress-32875
01/25/2023, 9:29 PM> curl -v <https://bg758e3hbg.execute-api.us-east-2.amazonaws.com/api/>
* Trying 10.255.0.165:443...
* TCP_NODELAY set
* Connected to <http://bg758e3hbg.execute-api.us-east-2.amazonaws.com|bg758e3hbg.execute-api.us-east-2.amazonaws.com> (10.255.0.165) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=*.<http://execute-api.us-east-2.amazonaws.com|execute-api.us-east-2.amazonaws.com>
* start date: Sep 2 00:00:00 2022 GMT
* expire date: Aug 31 23:59:59 2023 GMT
* subjectAltName: host "<http://bg758e3hbg.execute-api.us-east-2.amazonaws.com|bg758e3hbg.execute-api.us-east-2.amazonaws.com>" matched cert's "*.<http://execute-api.us-east-2.amazonaws.com|execute-api.us-east-2.amazonaws.com>"
* issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
* SSL certificate verify ok.
> GET /api/ HTTP/1.1
> Host: <http://bg758e3hbg.execute-api.us-east-2.amazonaws.com|bg758e3hbg.execute-api.us-east-2.amazonaws.com>
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 403 Forbidden
< Server: Server
< Date: Wed, 25 Jan 2023 21:27:51 GMT
< Content-Type: application/json
< Content-Length: 23
< Connection: keep-alive
< x-amzn-RequestId: 47b7b605-cac6-4798-8289-25c8e1fd78a6
< x-amzn-ErrorType: ForbiddenException
< x-amz-apigw-id: fUXBtGBbiYcFYCQ=
<
* Connection #0 to host <http://bg758e3hbg.execute-api.us-east-2.amazonaws.com|bg758e3hbg.execute-api.us-east-2.amazonaws.com> left intact
{"message":"Forbidden"}%average-beach-28850
01/25/2023, 9:51 PMMETAFLOW_SERVICE_AUTH_KEY in your metaflow configaverage-beach-28850
01/25/2023, 9:51 PMelegant-dress-32875
01/25/2023, 11:19 PMelegant-dress-32875
02/07/2023, 11:08 PMaverage-beach-28850
02/08/2023, 2:20 AMclever-pencil-68951
02/17/2023, 3:41 PM