Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[New Resource]: Security Lake #29376

@schuylr

Description

@schuylr

Description

Looking to add Security Lake as a new Terraform Resource / Data Source so users with IaC requirements in their production environments can effectively start using this service.

Requested Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_security_lake_data_lake" "example" {
  configurations {
    us-east-1 {
      encryptionKey                 = "string"
      replicationDestinationRegions = ["us-west-2"]
      replicationRoleArn            = "string"
      retentionSettings = [
        {
          retentionPeriod = 14
          storageClass    = "GLACIER"
        }
      ]
      tagsMap {
        key = "value"
      }
    }
  }

  enableAll               = true
  metaStoreManagerRoleArn = "string"
  regions                 = ["us-east-1"]
}


resource "aws_security_lake_aws_log_source" "example" {
  enableAllDimensions = {
    string = {
      string = ["string"]
    }
  }
  enableSingleDimension = ["string"]
  enableTwoDimensions = {
    string = ["string"]
  }
  inputOrder = ["string"]
}

resource "aws_security_lake_subscriber" "example" {
  accessTypes = ["LAKEFORMATION"]
  accountId   = "1234567890"
  externalId  = "1234567890"
  sourceTypes = [
    {
      awsSourceType    = "string"
      customSourceType = "string"
    }
  ]
  subscriberDescription = "string"
  subscriberName        = "string"
}

References

https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/securitylake
https://docs.aws.amazon.com/security-lake/latest/APIReference/API_CreateDatalake.html
https://docs.aws.amazon.com/security-lake/latest/APIReference/API_CreateSubscriber.html
https://docs.aws.amazon.com/security-lake/latest/APIReference/API_CreateAwsLogSource.html
https://docs.aws.amazon.com/security-lake/latest/APIReference/API_CreateCustomLogSource.html

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-data-sourceIntroduces a new data source.new-resourceIntroduces a new resource.new-serviceIntroduces a new service.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions