Saturday, May 21, 2022
  • Home
  • Contact
  • About
  • Privacy Policy
Eagles Boss - Your All In One News Platform
  • Home
  • Politics
  • Culture
  • Gaming
  • Motorsport
  • Boxing
  • Technology
  • Movies
  • Login
No Result
View All Result
Eagles Boss - Your All In One News Platform
Home Technology

Do your AWS deployments match your Terraform definitions? Use SQL to find out.

Shine by Shine
May 15, 2022
in Technology
0
Does your deployed infrastructure match what you defined?
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


In “How SQL can unify access to APIs” I made the case for SQL as a standard atmosphere through which to purpose about knowledge flowing from many various APIs. The important thing enabler of that state of affairs is Steampipe, a Postgres-based software with a rising suite of API plugins that map APIs to international tables in Postgres.

These APIs had been, initially, those supplied by AWS, Azure, and GCP. Such APIs are sometimes made extra accessible to builders by the use of wrappers like boto3. A standard SQL interface is arguably a better unifier of the sprawling API ecosystems inside these clouds, and that’s inarguably true in multicloud situations. With Postgres underneath the hood, by the way in which, you’re not restricted to SQL: You may hook Python or JavaScript or one other language to Postgres and leverage the widespread SQL interface from these languages too.

The Steampipe ecosystem then expanded with plugins for a lot of different providers together with GitHub, Google Workspace, IMAP, Jira, LDAP, Shodan, Slack, Stripe, and Zendesk. Becoming a member of throughout these APIs is a superpower finest confirmed by this instance that joins Amazon EC2 endpoints with Shodan vulnerabilities in simply 10 traces of very primary SQL.

choose
  a.instance_id,
  s.ports
  s.vulns
from
  aws_ec2_instance a
left be a part of
  shodan_host s on a.public_ip_address = s.ip
the place
  a.public_ip_address isn't null;

+---------------------+----------+--------------------+
| instance_id         | ports    | vulns              |
+---------------------+----------+--------------------+
| i-0dc60dd191cb84239 | null     | null               |
| i-042a51a815773780d | [80,22]  | null               |
| i-00cf426db9b8a58b6 | [22]     | null               |
| i-0e97f373db42dfa3f | [22,111] | ["CVE-2018-15919"] |
+---------------------+----------+--------------------+

Recordsdata are APIs too

However what’s an API, actually? Should it at all times entail HTTP requests to service endpoints? Extra broadly APIs are knowledge sources that are available different flavors too. Net pages are sometimes, nonetheless, de facto APIs. I’ve accomplished extra net scraping than I care to consider through the years and the talent stays helpful.

Recordsdata are additionally knowledge sources: configuration files (INI, YAML, JSON), infrastructure-as-code information (Terraform, CloudFormation), knowledge information (CSV). When plugins for these sources started to hitch the combination, Steampipe grew to become much more highly effective.

First got here the CSV plugin, which unlocked all kinds of helpful queries. Take into account, for instance, how we frequently fake spreadsheets are databases. In doing so we will assume there’s referential integrity when actually there isn’t. Should you export spreadsheet knowledge to CSV, you should use SQL to find those flawed assumptions. And that’s simply one of many infinite methods I can think about utilizing SQL to question the world’s main file format for knowledge change.

Then got here the Terraform plugin, which queries Terraform information to ask and reply questions like: “Which trails are usually not encrypted?”

choose
  identify,
  path
from
  terraform_resource
the place
  sort="aws_cloudtrail"
  and arguments -> 'kms_key_id' is null;

Utilizing the AWS plugin’s aws_cloudtrail_trail desk, we will ask and reply the identical query for deployed infrastructure, and return a end result set that you might UNION with the primary one.

choose
  identify,
  arn as path
from
  aws_cloudtrail_trail
the place
  kms_key_id is null;

Ideally the solutions will at all times be the identical. What you stated ought to be deployed, utilizing Terraform, ought to match what’s really deployed should you question AWS APIs. In the true world, in fact, upkeep and/or incident response can lead to configuration drift. Given a standard option to purpose over outlined and deployed infrastructure, we will handle such drift programmatically.

Belt and suspenders

For deployed infrastucture, Steampipe has lengthy supplied a set of mods that layer safety and compliance checks onto API-derived international tables. The AWS Compliance mod, for instance, offers benchmarks and controls to examine deployed infrastructure in opposition to eleven requirements and frameworks together with CIS, GDPR, HIPAA, NIST 800-53, and SOC 2.

steampipe aws cis v140 console IDG

With the appearance of the Terraform plugin it grew to become doable to create complementary mods, like Terraform AWS Compliance, that present the identical sorts of checks for outlined infrastructure.

steampipe terraform aws compliance console output IDG

Does what you outlined final month match what you deployed yesterday? A passable reply requires the flexibility to purpose over outlined and deployed infrastructure in a standard and frictionless means. SQL can’t take away all of the friction however it’s a strong solvent.

Copyright © 2022 IDG Communications, Inc.

Related posts

TurtleAuth DIY Security Token Gets (Re)designed For Durable, Everyday Use

May 21, 2022

Apple needs to stop adding iOS features we don’t need

May 21, 2022
Previous Post

Radiohead Bring Jazz to Mars on ‘Subterranean Homesick Alien’

Next Post

Templegate York Horse Racing Tips | NAP & NB for Wednesday 11th May

Next Post
Tom Segal York Horse Racing Tips | Pricewise Best Bets for Weds 11th May

Templegate York Horse Racing Tips | NAP & NB for Wednesday 11th May

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

RECOMMENDED NEWS

Ben Winchell Looks for Meaning in Life in ‘The Road to Galena’ Trailer

4 days ago
Blue Mar Releases Debut Album – ‘The March Hare’ – CelebMix

Blue Mar Releases Debut Album – ‘The March Hare’ – CelebMix

3 weeks ago
April 15, 1985: Hagler vs Hearns. A War To Remember

April 15, 1985: Hagler vs Hearns. A War To Remember

1 month ago
Meet Biden’s New ‘Minister of Truth’ at DHS

Meet Biden’s New ‘Minister of Truth’ at DHS

3 weeks ago

BROWSE BY CATEGORIES

  • Boxing
  • Culture
  • Gaming
  • How To
  • Motorsport
  • Movies
  • Music
  • Newswire
  • Politics
  • Soccer
  • Technology
  • Wrestling

BROWSE BY TOPICS

aew aew dark aew dynamite aew dynamite results aew news aew rampage aew rampage results aew results aew rumors aew spoilers brock lesnar bryan danielson cm punk daniel bryan john cena njpw nwa roman reigns royal rumble steve austin summerslam the rock undertaker watch aew watch party watch wrestling watch wwe wrestlemania wrestling wrestling live wrestling news wrestling news source wrestling stream wrestling video wwe wwe 2k22 wwe network wwe news wwe nxt results wwe ppv wwe raw results wwe results wwe rumors wwe smackdown results wwe spoilers

POPULAR NEWS

  • Katie Taylor vs Amanda Serrano – FULL fight Video 2022 WBC

    Katie Taylor vs Amanda Serrano – FULL fight Video 2022 WBC

    0 shares
    Share 0 Tweet 0
  • Rose Namajunas vs Carla Esparza 2 – full fight video UFC 274 highlights

    0 shares
    Share 0 Tweet 0
  • World Snooker Championship Final Live Stream: How to Watch Snooker for Free

    0 shares
    Share 0 Tweet 0
  • Lil Nas X announces Long Live Montero US, CA, and Europe Tour

    0 shares
    Share 0 Tweet 0
  • Yoel Romero vs Alex Polizzi – FULL fight Video Bellator 280 – 2022

    0 shares
    Share 0 Tweet 0

Eagles Boss is the best news source platform that brings you the latest sports to celebrity news in no time.

Follow us on social media:

Recent News

  • Manchester United midfielder Juan Mata could stay at club
  • GOP RINOS Are Now Working With George Soros to Destroy “Voter ID” Efforts in Michigan
  • How Steve Martin Hassled Hollywood in ‘Dead Men Don’t Wear Plaid’

Category

  • Boxing
  • Culture
  • Gaming
  • How To
  • Motorsport
  • Movies
  • Music
  • Newswire
  • Politics
  • Soccer
  • Technology
  • Wrestling

Recent News

Manchester United midfielder Juan Mata could stay at club

May 21, 2022

GOP RINOS Are Now Working With George Soros to Destroy “Voter ID” Efforts in Michigan

May 21, 2022
  • Home
  • Contact
  • About
  • Privacy Policy

© 2022 EaglesBoss - Made WIth ❤️ By Shine Barbhuiya

No Result
View All Result
  • Home
  • Politics
  • Culture
  • Gaming
  • Motorsport
  • Boxing
  • Wrestling
  • Technology
  • Movies
  • Music

© 2022 EaglesBoss - Made WIth ❤️ By Shine Barbhuiya

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In