Comments (3)
Tellingly, I just discovered this (I am running from within an EC2 instance):
$ curl -v http://169.254.169.254/latest/meta-data/iam/
* About to connect() to 169.254.169.254 port 80 (#0)
* Trying 169.254.169.254... connected
> GET /latest/meta-data/iam/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 169.254.169.254
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 404 Not Found
< Content-Type: text/html
< Content-Length: 345
< Connection: close
< Date: Wed, 23 Jan 2013 02:04:10 GMT
< Server: EC2ws
<
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
* Closing connection #0
from botocore.
It appears my instance doesn't have IAM data included with the meta-data:
curl -v http://169.254.169.254/latest/meta-data/
* About to connect() to 169.254.169.254 port 80 (#0)
* Trying 169.254.169.254... connected
> GET /latest/meta-data/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 169.254.169.254
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Content-Type: text/plain
< Accept-Ranges: bytes
< ETag: "-1351512713"
< Last-Modified: Fri, 04 Jan 2013 02:06:13 GMT
< Content-Length: 263
< Connection: close
< Date: Wed, 23 Jan 2013 02:07:26 GMT
< Server: EC2ws
<
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
kernel-id
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
* Closing connection #0
security-groups%
from botocore.
I'm closing this as invalid. My original interpretation of the session constructor was wrong - I'll open another more specific issue.
from botocore.
Related Issues (20)
- Use built-in fromisoformat instead of python-dateutil HOT 1
- Incorrect appconfigdata endpoint for FIPS in us-gov regions HOT 2
- SSO OIDC client should not attempt to contact AWS metadata HOT 4
- "TypeError: can't compare offset-naive and offset-aware datetimes" when fetching credentials via iam-role HOT 14
- Identical data is loaded into every session wasting memory HOT 3
- client.py : _resolve_endpoint_ruleset returns 3 values instead of 2 HOT 3
- Lambda python 3.11 does not start with current boto 1.33.2 HOT 29
- ImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' HOT 3
- botocore using deprecated datetime.datetime.utcnow() call HOT 2
- Bucket validation cannot handle project:bucketname syntax for openstack type of s3 HOT 2
- route53resolver endpoints have incorrect required argument: CreatorRequestId HOT 1
- SageMaker client's FIPS endpoint incorrect in us-gov-west-1 HOT 2
- botocore does not ignore credential_process when that configuration value is blank (empty string)
- get_available_regions does not return ec2 for the new region ca-west-1 HOT 5
- ImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' python 3.9 HOT 3
- Credentials JSONFileCache explodes if cache file has malformed JSON HOT 1
- Add 'readinfo' shim to botocore.response.StreamingBody
- Allow $AWS_PROFILE to be blank
- When uploading, checking 'Expect' header results in "TypeError: sequence item 0: expected str instance, bytes found" HOT 46
- Support urllib3 2.1.0 and 2.2.0 to be installed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botocore.