spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
74 stars 28 forks source link

Lookup AWS and Azure integrations by name #352

Closed adamconnelly closed 2 years ago

adamconnelly commented 2 years ago

Description of the change

Here's an example of using both data sources now:

data "spacelift_aws_integration" "by_id" {
  integration_id = "01G8E6CGYHEW3Y5FIDX4MH7BQP"
}

data "spacelift_aws_integration" "by_name" {
  name = "Test Account"
}

data "spacelift_azure_integration" "by_id" {
  integration_id = "01GA47B959XROE42J4MC3BEBHZ"
}

data "spacelift_azure_integration" "by_name" {
  name = "Test Subscription"
}

Type of change

Checklists

Development

Code review

marcinwyszynski commented 2 years ago

Task linked: CU-2rrfuk0 [AWS Attachments] Allow lookup by integration name