Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⭐️ new resource mondoo_integration_shodan #141

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Oct 21, 2024

mondoo_integration_shodan (Resource)

Continuously scan Internet-connected devices with Shodan.

Example Usage

variable "mondoo_org" {
  description = "The Mondoo Organization ID"
  type        = string
}

variable "shodan_token" {
  description = "The Shodan Token"
  type        = string
  sensitive   = true
}

provider "mondoo" {
  region = "us"
}

# Create a new space
resource "mondoo_space" "shodan_space" {
  name   = "My Shodan Space Name"
  org_id = var.mondoo_org
}

# Setup the Shodan integration
resource "mondoo_integration_shodan" "shodan_integration" {
  space_id = mondoo_space.shodan_space.id
  name     = "Shodan Integration"

  targets = ["8.8.8.8", "mondoo.com"]

  credentials = {
    token = var.shodan_token
  }
}

You can now setup the Shodan integration with Mondoo:
```hcl
resource "mondoo_integration_shodan" "shodan_integration" {
  space_id = mondoo_space.shodan_space.id
  name     = "Shodan Integration"

  targets = ["8.8.8.8", "mondoo.com"]

  credentials = {
    token = var.shodan_token
  }
}
```

Signed-off-by: Salim Afiune Maya <[email protected]>
Signed-off-by: Salim Afiune Maya <[email protected]>
@afiune afiune force-pushed the afiune/resource/shadan branch from c44115f to 82f1066 Compare October 21, 2024 03:11
Signed-off-by: Salim Afiune Maya <[email protected]>
Copy link
Member

@imilchev imilchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Salim Afiune Maya <[email protected]>
@afiune afiune merged commit d884d29 into main Oct 22, 2024
19 checks passed
@afiune afiune deleted the afiune/resource/shadan branch October 22, 2024 13:23
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants