aws_ec2_metadata
- Components
- Code examples
Code examples
Read-only instance metadata
Install the AWS EC2 module
SELECT * FROM iasql_install('aws_ec2_metadata');
View the metadata for the previously created i-1
instance. View the table schema here
SELECT *
FROM instance_metadata
WHERE instance_id = (
SELECT instance_id
FROM instance
WHERE tags ->> 'name' = 'i-1'
);