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

feat(RAIN-92781): Add provider for AzureAdAl integration #623

Merged
merged 2 commits into from
May 21, 2024

Conversation

rubinder-lw
Copy link
Contributor

Issue: https://lacework.atlassian.net/browse/RAIN-92781

Description:
Add support for AzureAdAl integration terraform module

Additional Info:
Tests performed

make prepare
make build
make install
cd resource_lacework_integration_azure_ad_al
terraform init
(⎈|lacework.teleport.sh-lacework-devtest-dev3:N/A)➜  resource_lacework_integration_azure_ad_al git:(RAIN-92781-azure-ad-al) ✗ terraform apply

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # lacework_integration_azure_ad_al.example will be created
  + resource "lacework_integration_azure_ad_al" "example" {
      + created_or_updated_by   = (known after apply)
      + created_or_updated_time = (known after apply)
      + enabled                 = true
      + event_hub_name          = "your-event-hub-name"
      + event_hub_namespace     = "your-eventhub-ns.servicebus.windows.net"
      + id                      = (known after apply)
      + intg_guid               = (known after apply)
      + name                    = "Azure Active Directory Activity Log integration example"
      + org_level               = (known after apply)
      + retries                 = 10
      + tenant_id               = "your-tenant-id-goes-here"
      + type_name               = (known after apply)

      + credentials {
          + client_id     = "1234567890-abcd-client-id"
          + client_secret = (sensitive value)
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

lacework_integration_azure_ad_al.example: Creating...
lacework_integration_azure_ad_al.example: Creation complete after 1s [id=DEV38397_0A23F3C105D4B4AB1A8FA16C928FD619C51BAED941B3A44]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
(⎈|lacework.teleport.sh-lacework-devtest-dev3:N/A)➜  resource_lacework_integration_azure_ad_al git:(RAIN-92781-azure-ad-al) ✗ terraform destroy
lacework_integration_azure_ad_al.example: Refreshing state... [id=DEV38397_0A23F3C105D4B4AB1A8FA16C928FD619C51BAED941B3A44]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # lacework_integration_azure_ad_al.example will be destroyed
  - resource "lacework_integration_azure_ad_al" "example" {
      - created_or_updated_by   = "rubinder.singh@lacework.net" -> null
      - created_or_updated_time = "2024-04-03T19:05:59.124Z" -> null
      - enabled                 = true -> null
      - event_hub_name          = "your-event-hub-name" -> null
      - event_hub_namespace     = "your-eventhub-ns.servicebus.windows.net" -> null
      - id                      = "DEV38397_0A23F3C105D4B4AB1A8FA16C928FD619C51BAED941B3A44" -> null
      - intg_guid               = "DEV38397_0A23F3C105D4B4AB1A8FA16C928FD619C51BAED941B3A44" -> null
      - name                    = "Azure Active Directory Activity Log integration example" -> null
      - org_level               = false -> null
      - retries                 = 10 -> null
      - tenant_id               = "your-tenant-id-goes-here" -> null
      - type_name               = "AzureAdAl" -> null

      - credentials {
          - client_id = "1234567890-abcd-client-id" -> null
        }
    }

Plan: 0 to add, 0 to change, 1 to destroy.

Do you really want to destroy all resources?
  Terraform will destroy all your managed infrastructure, as shown above.
  There is no undo. Only 'yes' will be accepted to confirm.

  Enter a value: yes

lacework_integration_azure_ad_al.example: Destroying... [id=DEV38397_0A23F3C105D4B4AB1A8FA16C928FD619C51BAED941B3A44]
lacework_integration_azure_ad_al.example: Destruction complete after 0s

Destroy complete! Resources: 1 destroyed.
  • Go Test
    go test -v -run "TestIntegrationAzureAdAl"

@rubinder-lw rubinder-lw requested a review from a team as a code owner April 3, 2024 20:35
@rubinder-lw rubinder-lw force-pushed the RAIN-92781-go-sdk-update branch 2 times, most recently from 365d64f to 4b20ffd Compare April 4, 2024 21:12
Base automatically changed from RAIN-92781-go-sdk-update to main April 4, 2024 22:38
Signed-off-by: rubindersingh <rubinder.singh@lacework.net>
@rubinder-lw rubinder-lw force-pushed the RAIN-92781-azure-ad-al branch from df52a82 to 94fa19d Compare April 4, 2024 22:46
- Fix doc warning

Signed-off-by: rubindersingh <rubinder.singh@lacework.net>
@rubinder-lw rubinder-lw merged commit f7da529 into main May 21, 2024
7 checks passed
@rubinder-lw rubinder-lw deleted the RAIN-92781-azure-ad-al branch May 21, 2024 00:41
@lacework-releng lacework-releng mentioned this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants