
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
A gem to provide an easy way to load the AWS information from a given AWS instance. Automatically detect server IP, Region, Availability Zone, etc. as well as instance tags.
Under the hood this gem uses the aws meta data lookup url for instance information: http://169.254.169.254/latest/dynamic/instance-identity/document
And it uses aws describe tags command on the aws server to get a list of tags: "aws ec2 describe-tags ..."
Add this line to your application's Gemfile:
gem 'aws_info'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aws_info
require 'aws_info'
AwsInfo.region
#=> "us-east-1"
AwsInfo.ip
#=> "10.10.10.10"
AwsInfo.availability_zone
#=> "us-east-1b"
AwsInfo.instance_id
#=> "i-00000000"
AwsInfo.instance_type
#=> "t2.micro"
AwsInfo.version
#=> "2015-1-21"
AwsInfo.dev_pay_product_codes
#=> nil
AwsInfo.billing_products
#=> nil
AwsInfo.account_id
#=> "00000000000"
AwsInfo.pending_time
#=> "2015-09-04T19:03:47Z"
AwsInfo.image_id
#=> "ami-c8888888"
AwsInfo.kernel_id
#=> nil
AwsInfo.ram_disk_id
#=> nil
AwsInfo.architecture
#=> "x86_64"
AwsInfo.tags
#=> { 'my_tag' => 'my tag's value!'}
# Access a single tag
AwsInfo.tags['my_tag']
#=> "my tag's value!"
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that aws_info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.